Привет, у меня есть ситуация, когда в приложении для iPad в моем master controller
есть список, а в контроллере деталей есть его детали, типичный шаблон UISplitViewController
. Чего я хочу добиться, так это того, чтобы сначала была выбрана моя первая строка, а позже я хочу предоставить выбор пользователю. Я использую ячейку setSelected
и в методе didSelectRowAtIndexPath
удаление выделения, как это.
-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:NO];
NSIndexPath* path = [NSIndexPath indexPathForRow:0 inSection:0];
UITableViewCell* cell = [tableView cellForRowAtIndexPath:path];
[cell setSelected:NO];
}
для начальной ячейки, но моя ни одна ячейка не будет выбрана после этого, пожалуйста, помогите мне.