iphone - How to disable the row selection after specific no of counts in UItableview -


i wanted disable uitableview cell selection after selecting 10 rows in multiselect uitableview, after deselecting rows again user able select uitableview cell.

can please suggest me, how can this?

thanks in advance.

implement willselectrowatindexpath:indexpath:

- (nsindexpath *)tableview:(uitableview *)tableview willselectrowatindexpath:(nsindexpath *)indexpath {   if (tableview.indexpathsforselectedrows.count < yourmaxrowselectedcount) {     return indexpath;   } else {     return nil;   } } 

Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -