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]
精彩评论