FPPopover
FPPopover copied to clipboard
Message sent to deallocated instance
I am currently using ARC in my project. I have run the target on iOS 6. Sometimes when I pop off a view controller that contains FPPopoverView, it crashes with the following error
[RecipeDetailViewController tableView:heightForRowAtIndexPath:]: message sent to deallocated
RecipeDetailViewController is the deallocated view controller that has been popped off. I think that the issue is due to the detailViewController being registered to the notification center and not being removed. The following is the stack for the thread causing crash.
The following are the detailed stack.
- [FPPopoverController deviceOrientationDidChange:]
- [FPPopoverController setupView]
- [FPPopoverController bestArrowDirectionAndFrameFromView]
- [FPPopoverView setFrame:]
Has anyone encountered this kind of issue while using it in ARC and IOS 6?
I encounter similar memory issue, the app complain sending message to delocated instance. Workaround with disable arc on the FPPopover.