How to pass value to another view-controllers?
Posted
by
ICoder
on Stack Overflow
See other posts from Stack Overflow
or by ICoder
Published on 2011-11-29T09:18:31Z
Indexed on
2011/11/29
9:50 UTC
Read the original article
Hit count: 153
iphone
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.
© Stack Overflow or respective owner