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
Post a Comment