に がありUITextfield
ますtableHeaderView
。ナビゲーション バーの編集ボタンをクリックすると、このテキスト フィールドを編集できますが、下のテーブルの行は編集/移動できません。
TextField で tableHeaderView をコメントアウトすると、問題なく行を編集できますか?
何か案は?
に がありUITextfield
ますtableHeaderView
。ナビゲーション バーの編集ボタンをクリックすると、このテキスト フィールドを編集できますが、下のテーブルの行は編集/移動できません。
TextField で tableHeaderView をコメントアウトすると、問題なく行を編集できますか?
何か案は?
- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section{
UITextField *txt = [[UITextField alloc] init];
txt.text = @"header";
txt.enabled =TableView.editing;
return txt;
}
-(IBAction)buttonTap:(id)sender{
if (TableView.editing) {
TableView.editing = NO;
}else TableView.editing = YES;
[TableView reloadData];
}