开发者

how to move the control from one uiview to another uiview in iphone?

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];
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜