![](/img/trans.png)
[英]Action sheet loads for 1st time with an space from the bottom of the screen?
[英]iphone:In view based application how can I move from 4th screen to 1st screen
我正在創建基於視圖的應用程序,在此應用程序中,我想直接從第4屏幕切換到第1屏幕,然后該怎么做?
我要轉到下一個視圖的代碼如下:
NewProposalDetail *newDetail = [[NewProposalDetail alloc] initWithNibName:@"NewProposalDetail" bundle:nil];
[self presentModalViewController:newDetail animated:YES];
[newDetail release];
任何想法? 如果是,然后分享
使用pushViewControllers
和popViewControllers
將屏幕popViewControllers
到任何其他屏幕的方式相同。 采用
[self.navigationController popToRootViewControllerAnimated:YES];
第一個視圖是您看到的根視圖,因此只需放置此行,它將拾取firstView。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.