私は2つのクラスを持っています:List <UITableViewDelegateとTableView <UITableViewDelegate, UITableViewDataSource.
クラスTableViewは、Core Data によってアプリにデータを取得する UITableView のカスタム クラスであり、機能します。オブジェクトtableViewはListClass で初期化され、このオブジェクトにはdelegateとがありdataSource = selfます。
tableView質問:オブジェクトから行を選択して、独自の関数などでクラスにデータを送信するにはどうすればよいListですか?
tableView私はデリゲート関数
を使用します:-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath