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