开发者

Objective-C: Casting method to button without using NIB file?

开发者 https://www.devze.com 2022-12-25 20:54 出处:网络
I am trying to use some action when I click button in navigation controller. But I created this navigation controller and navigation item with coding. And I know how cast in NIB button with开发者_开发

I am trying to use some action when I click button in navigation controller. But I created this navigation controller and navigation item with coding. And I know how cast in NIB button with开发者_开发技巧 action but. How can I do this with coding?


To set the action of any control, send it a -setAction: message.

0

精彩评论

暂无评论...
验证码 换一张
取 消