Hello, I try to pass a NSString from one view to an other view, but I doesn't work. I set a NSString in the SecondViewController as property
@property (assign) NSString * wert1;
When I load the SecondViewController with a button-press on the FirstViewController, I try to pass the NSString:
SecondViewController *Second = [[SpinViewController alloc] initWithNibName:nil bundle:nil];
Second.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"black.png"]];
[Second setWert1:texteingabe1]; //HERE <<<<
Second.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:Second animated:YES];
[Second release];
In the SecondViewController i make this:
NSLog(@"%@",wert1);
But NSLog just says: (null). Why?
Thanks for your help and sorry for my bad English.