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.
Declare the variable
in
UploadViewController.hfile.Also add a property for that variable in the same file.
In .m file, synthesize that inside the implementation.
Now run the app.