UITextField not setting NSString -


i have pickerview in popover. when user selects row pickerview, should stored uitextfield (subject)

the method i'm having troubles is:

- (void) viewwithpickercontroller:(viewwithpickercontroller*) viewwithpickercontroller didselectvalue:(nsstring*) value {   nslog(@"selected value is: %@",value);     subject.text = [nsstring stringwithformat:@"%@",value];     nslog(@"subject is: %@",subject.text);  } 

where value row of pickerview: logs right value doesn't set textfield subject, seems null.

where wrong?

you need make sure "subject" iboutlet set.

if you're doing picker view method before xib / view controller instantiated, explain why subject nil object.

how else instantiating "subject"?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -