【发布时间】:2010-07-22 14:42:58
【问题描述】:
我有一个工具栏,其中放置了一个 UIBarButtonItem。选择器针对的是我的自定义视图;具有此签名的方法:
-(IBAction)pop{code}
但是,单击它不会导致任何操作发生。 buttonitem 似乎也没有响应点击,它只是保持灰色。
将 UIButton 的 TouchUpInside 事件链接到 pop 方法很好,它操作该方法并显示 popover。但只要我将 BarButtonItem 的选择器连接到它,它就会停止响应。
【问题讨论】:
标签: iphone objective-c user-interface uibarbuttonitem