Probably what you're doing is something like this:

FormBController * b = [[FormBController alloc] init];
[[self navigationController] pushViewController:b animated:YES];
[b release];

What about making b an instance variable of the object, and then do:

if (!b) { b = [[FormBController alloc] init];
[[self navigationController] pushViewController:b animated:YES];

And then in your viewWillAppear: method, have something like:

if (b && animated) {
  [myTextField setText:[b userEnteredValue]];
  [b release];
  b = nil;
}

HTH,

Dave


On Apr 7, 2009, at 5:06 AM, developers mac wrote:

I have two forms (.xib file). From form A, i used to navigate to form B. After selecting a value from form B, I will return back to form A. For that I used, [self.navigationController popViewControllerAnimated:YES]; to move back to form A. Then the problem occurred. When doing this, I am carrying some data's globally. All i have to do is to put those selected values from form B in the textfield of form A. I am not sure on how to solve this. I have several methods like viewDidload, didSelectRowAtIndexPath and many other, I tried placing a break point in each of the methods i have & found none to be firing. So, thats my problem. If i can invoke some method, then I can put those values in the textfields. I hope this helps you to understand
my problem in a much more clarified way. Thanks in Advance!
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/davedelong%40me.com

This email sent to [email protected]

_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to