我是ios开发新手。
我有两个视图控制器。
-(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];
}