开发者

how to navigate from subview to another view

I want to navigate from subview to another 开发者_如何学Cview.i have written the code but it is navigating from this view.please help me in solving this problem.

NSLog(@"selected tag:%d",[sender tag]);
UserViewController *uViewController=[[UserViewController alloc] initWithNibName:@"UserViewController" bundle:nil];
uViewController.usersArray=self.usersArray;
uViewController.accessingIndex=[sender tag];
self.userViewController=uViewController;

[self.navigationController pushViewController:self.userViewController animated:YES];
[uViewController release];


You can use this method to show a view

[self presentModalViewController:uViewController animated:YES]

To close it use:

[self dismissModalViewControllerAnimated:yes]
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜