How to pass value to another view-controllers?
- by ICoder
I want to pass localstringtextnote to Uploadviewcontroller by this way ,
UIViewController *controllerNew = [[UploadViewController alloc] initWithNibName:@"UploadView" bundle:nil owner:self];
controllerNew.localStringtextnote = localStringtextnote;
[self.navigationController pushViewController:controllerNew animated:YES];
[controllerNew release];
but i got this error"@property localstringtextnote not fond in the object of type uiviewcontroller"
or
i want to pass through modalTransistionstyle
UploadViewController *aSecondViewController = [[UploadViewController alloc] initWithNibName:@"UploadView" bundle:nil];
aSecondViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:aSecondViewController animated:YES];
[UIView commitAnimations];
How to do this?Thanks in advance.