hi everyone i am new to iphone development.
Actually i am trying with some sample app where i have a textField in the Viewcontroller and a Button,when i enter a string in the textfield and press the button it should display the same string in NextView.so can anyone help me out in doing this.
i worked with transition between one view to another view,but i need copy string from Viewcontroller1 to NextView
@ViewController1
-(IBAction)next
{
NextView *Nview = [[NextView alloc]initWithNibName:@"NextView" bundle:nil];
[self.view addSubview:Nview.view];
}
Set an ivar in your
NextViewcalled “newString” for example, then pass a string to that ivar form your first controller.For Example, not tested (and this is one of many ways you can do this):
FirstView
NextView
Then throughout your
NextView, just call uponnewStringwherever you want to get the value of the previous views textField.