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

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -