ios - How to push to detail view controller on button click by didselectrow manually; get back again and then push as count of data source array? -
i have uitable view , want perform didselectrow manually on button action; next view controller pushed. take screen shot , back. again perfom action till data source counts? sample logic or objective c code ?
the scenerio : 1. click on uibutton start didselectrow manually. 2. index 1 of uitabel view selected ; next view controller presented; here takes screenshot , back. 3. shows next view controller of uitable's 2nd indexpath.row; again takes screenshot , pop previous view controller. 4. scenerio continues till indexes view controller displayed , got thier screen shot
a simple approach,if want didselect on uitableview manually store indexpath.row value in cell's button tag.
now, in button action call didselect of tableview per button tag.
demo code:-
nsindexpath *indexpath = [nsindexpath indexpathforrow:btn.tag insection:0] [self tableview:playlisttbl didselectrowatindexpath:indexpath];
Comments
Post a Comment