I created a uiview(with two buttons) covers all the screen whenever i click on any one of button i want to transfer my control on previous screen what can i do in iphone开发者_StackOverflow?
code for navigating from one view to another is as belove :
DetailViewController *detailViewController;
[self.navigationController pushViewController:detailsViewController animated:YES];
and for going back :
[self.navigationController popViewControllerAnimated:YES];
leave comment if have any trouble... and click on correct sign if its correct...and votes up the answer to help another guys to see it.
if you are using NavigationController than for going back to previous view...
[self.navigationController popViewControllerAnimated:YES];
Otherwise
[self dismissModalViewControllerAnimated:YES];
精彩评论