[UIBarButtonItem convertPoint:toView:]:发送到实例的无法识别的选择器

时间:2014-09-12 03:26:15

标签: ios objective-c segue uibarbuttonitem unrecognized-selector

我使用模态segue将我的UIBarButtonItem链接到XIB中的View Controller, 一旦我点击UIBarButtonItem,下面的错误就出现了,我无法找到它的原因,任何人都可以帮助我。感谢。

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'

1 个答案:

答案 0 :(得分:2)

convertPoint:toView:方法来自UIView类。 UIBarButtonItem不会UIView(直接或间接)延伸。