Hi all,
Does anyone know how to connect actions and outlets programmatically? Basically I have a few text fields that are hidden when the view loads, and depending on some user input I want to be able to create some new objects in the viewcontroller or appdelegate and once created call some methods to link those objects via outlets to be able to update those UITextFields, and conversely link actions methods from the UIControl objects to prompt modifications to the created objects.
Any help would be appreciated.
Thanks,
Andy
2 replies to this topic
#1
Posted 27 April 2010 - 03:02 PM
#2
Posted 28 April 2010 - 08:10 AM
Seems like you can wire up actions using something like. Still looking for outlet mapping.
[btn addTarget:self action:@selector(buttonClickActionMethod) forControlEvents:UIControlEventTouchUpInside];
[btn addTarget:self action:@selector(buttonClickActionMethod) forControlEvents:UIControlEventTouchUpInside];
#3
Posted 07 May 2010 - 02:49 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users



Sign In
Create Account








