ios - prepareForSegue Method dosn't work when setting editing to yes -


i have normal tableview 7 sections. otherwise have prepareforsegue method. runs fine. when setting edit mode in viewdidload

[self.tableview setediting:yes animated:yes]; 

my prepareforsegue method doesn't work anymore.

for editing have implement these methods

- (bool)tableview:(uitableview *)tableview caneditrowatindexpath:(nsindexpath *)indexpath; - (bool)tableview:(uitableview *)tableview canmoverowatindexpath:(nsindexpath *)indexpath; - (uitableviewcelleditingstyle)tableview:(uitableview *)tableview editingstyleforrowatindexpath:(nsindexpath *)indexpath; 

hope can me out. thanks.

when editing, default users not allowed select table view cell. believe segue triggered when users select table view cell, in calls didselectrowatindexpath.

you can change behaviour setting allowsselectionduringediting property of table view:

self.tableview.allowsselectionduringediting = yes; 

similar question here:

when editing, `uitableview` not call didselectrowatindexpath ??


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -