2016-10-18 6 views
0

私はスターターです! 私が選択したすべてのセルのindexPathを取得し、私のプロジェクトは、アラーム時計NSMutableArrayでindexPathを取得して書き込む方法

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ 
    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; 
    cell.accessoryType = UITableViewCellAccessoryCheckmark; 

- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath{ 
    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath]; 
    cell.accessoryType = UITableViewCellAccessoryNone; 

} 

あるNSMutableArrayの に書く方法TableViewController で7細胞 - (7日)を持っているあなたが得ることができる助けたり、私に何か

+0

indexPathsForSelectedRowsメソッドを調べてください! –

+0

ありがとう - Teja Nandamuri –

答えて

0

を教えてくださいこれを使ってindexpath配列を作成します。

NSArray * indexPathArray = [yourTableView indexPathsForSelectedRows];

関連する問題