I link my UIBarButtonItem to a View Controller in XIB using modal segue, once I click the UIBarButtonItem the error below came out and I can't find what is the reason for it, anyone please help me. Thanks.
2014-09-12 11:08:26.551 testingApp[28195:60b] -[UIBarButtonItem convertPoint:toView:]: unrecognized selector sent to instance 0xd22a270
2014-09-12 11:08:26.688 testingApp[28195:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIBarButtonItem convertPoint:toView:]: unrecognized selector sent to instance 0xd22a270'
The convertPoint:toView:
method is from the UIView
class. UIBarButtonItem
does not extend UIView
(directly or indirectly).