Re: Pass data through view
Re: Pass data through view
- Subject: Re: Pass data through view
- From: Alex Zavatone <email@hidden>
- Date: Mon, 20 Aug 2012 05:36:50 -0400
On Aug 16, 2012, at 10:00 AM, Vavelin Kévin wrote:
> Hi there,
>
> I know my question is a basic question but I'm not able to make it work and I don't know why :/ I have an UIViewController where I have a textField and another view who will be show when I tap on a button.
> That I want is to change a label in my another view with the content of my textField. I tried to use all of example in the net and nothing works for me.
> I have a property like that :
>
> @property(strong, nonatomic)SecondViewController *secondViewController;
>
> I tried to change my data like that :
> self.secondViewController.myLabel.text = textFied.text;
>
> and like that :
>
> [_secondViewController setLabel:textFied.text];
>
> but neither of this function seems to work. I don't know how i can pass my data back to my anotherView :/
I'd try making sure the second VC is inited and try setting it from viewDidLoad, viewWillLoad, viewWillAppear, or viewDidAppear.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden