ios - tableView:canEditRowAtIndexPath: crash when popping viewController -
i have viewcontroller uitableview
, rows of allow edit (delete) swipe - in mail app. with, among other, method:
- (bool)tableview:(uitableview *)tableview caneditrowatindexpath:(nsindexpath *)indexpath { return yes; }
however, if have delete button revealed, , @ same time use navigation of uinavigationcontroller
, i.e. when popviewcontrolleranimated:
, app crashes following message:
[viewcontroller tableview:caneditrowatindexpath:]: message sent deallocated instance 0xaae64d0
how can resolve problem?
in view controller's dealloc
method, set table view's editing
property no
.
Comments
Post a Comment