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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -