一個可編輯的TextView作爲我的第一個Objective-C的項目曾經我需要實現didSelectRowAtIndexPath
添加在didSelectRowAtIndexPath方法
下可以忽略的,上面寫着「Sikkerhed」第二行的一切。我想要的是當按下我的UITableView
中的一個單元格時,隨鍵盤彈出的新視圖。正在設置的數據和正在顯示的文本將根據所選行被更改。我如何去執行這樣的事情?我需要一個新的UIViewController
這個view
?
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
// Code
}