我有以下代碼。UITableView行未被選中的列表
NSMutableArray *aList = [[NSMutableArray alloc] init];
for (NSIndexPath *indexPath in tableview1.indexPathsForSelectedRows) {
NSString *r = [NSString stringWithFormat:@"%i",indexPath.row];
[aList addObject:r];
}
所以我得到的是被選中的UITableView行列表。是否有一個簡單的方法獲得列表的行是不是選擇?
謝謝你的幫助。
謝謝。看起來你的代碼並沒有給我所需要的東西。 – 2013-03-14 07:43:48
@TBlue你現在可以檢查,我做了編輯 – Anupdas 2013-03-14 08:47:38
謝謝。它似乎接近我所需要的,除了我需要的是不是indexPaths的行列表,你知道嗎? – 2013-03-14 09:23:57