私はios開発の新人です。
私は2つのView Controllerを持っています。
-(IBAction)clickToview:(id)sender
{
[self performSegueWithIdentifier:@"1" sender:self];
}
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
if ([segue.identifier isEqualToString:@"1"]) {
second *destViewController = segue.destinationViewController;
destViewController.labA.text=textA.text; // here i want to set values in labA to labB. in second view .
destViewController.labB.text=textB.text;
NSLog(@"labA ");
}
}
-(void)viewDidLoad
{
textA.text=@"London "; // this is my text fields
textB.text=@"Dreams ";
[super viewDidLoad];
}