Ercan Ercan - 2 years ago 92
Objective-C Question

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

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?

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download