Как я узнаю, когда UitableView теряет фокус?IOS

Программируем под IOS
Anonymous
Как я узнаю, когда UitableView теряет фокус?

Сообщение Anonymous »

У меня есть uitableview с uitextfield для каждой строки. Когда пользователь касается за пределами таблицы, отказавшись от выбора текстового поля, я хотел бы вызвать метод.- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";

CMTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[[CMTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
}

[[cell textField] setTag:[indexPath row]];
[[cell textField] setDelegate:self];

NSString *tagName = [tagsDisplayName objectAtIndex:[indexPath row]];
[[cell textField] setText:tagName];

return cell;
}


Подробнее здесь: https://stackoverflow.com/questions/121 ... oses-focus

Вернуться в «IOS»