开发者

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

开发者 https://www.devze.com 2022-12-27 07:49 出处:网络
I createda 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 n

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

精彩评论

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