iphone - How can i select multiple rows from table view and how to get data from that? -


how can select multiple rows table view , need data(cell) selected user.

thanks

you can add selected cell's [indexpath row] array. , use later. nsmutablearray* selectedcellsarray; // ivar somwhere in implementation

selectedcellsarray = [[nsmutablearray alloc] init]; 

in tableview didselectrowatindexpath delegate method:

[selectedcellsarray addobject:[nsnumber numberwithint:[indexpath row]]]; 

your array have of selected tableview cells indexpath row.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -