I am using this way to pass a string value from one view controller to another but still it's not working. Please help! From the main menu login method I pass a result value of a web service to SecondMenu:
- (IBAction)MainMenuLogin_Method:(id)sender
{
SecondMenu *lc2=[[SecondMenu alloc] initWithNibName:@"SecondMenu" bundle:nil];
lc2.username_TextField.text=@"hello";// in actual it is a soap result
//[self presentModalViewController:lc2 animated:YES];
[[[[UIApplication sharedApplication] delegate] window] addSubview:lc2.view];
}