0
我必须从一个视图 - 控制器到另一个视图 - 控制器传递值,我的这个代码工作正常导航疑惑
NSString *localStringtextnote;
-(IBAction)_clickbtnsyncNote:(id)sender
{
localStringtextnote = textVieww.text;
Googledocmainpage *detailViewController = [[Googledocmainpage alloc] initWithNibName:@"Googledocmainpage" bundle:nil];
detailViewController.localStringtextnote = localStringtextnote;
// ...
// Pass the selected object to the new view controller.
[self.navigationController pushViewController:detailViewController animated:YES];
[detailViewController release];
,但我想通过这样的方式
Googledocmainpage *aSecondViewController = [[Googledocmainpage alloc] initWithNibName:@"Googledocmainpage" bundle:nil];
aSecondViewController.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentModalViewController:aSecondViewController animated:YES];
[self.navigationController pushViewController:aSecondViewController animated:YES];
通过localStringtextnote
如何通过上述页面重新定义方法传递一个值?我希望你理解我的问题。
yeaa u r right right it fine。 – ICoder