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
Post a Comment