我想'做一些東西'在同一時間,因爲我從堆棧頂部viewController彈出。從堆棧中彈出一個viewController似乎不被認爲是一個segue,所以我不能使用prepareForSegue:sender:是否有一種替代方法可以滿足我的需求?或者我可以採取不同的方法? 非常感謝!prepareForSegue:發件人:替代popViewControllerAnimated:
1
A
回答
1
當你說「pop」到頂部的ViewController時,我假設你正在使用navigationController。如果是這種情況,你可以把你想要的東西放在
- (void)viewWillAppear:(BOOL)animated
方法中。
1
尋找能夠滿足您的需求的「展開細節」。
相關問題
- 1. prepareForSegue和PerformSegueWithIdentifier發件人
- 2. - (void)prepareForSegue :(UIStoryboardSegue *)segue發件人:(id)發件人不是geting調用
- 3. prepareForSegue和代表
- 4. 無法在prepareForSegue中設置屬性:發件人:
- 5. 用主人代替開發分支
- 6. iCloud替代ios/mac開發人員
- 7. 發送使用prepareForSegue
- 8. 用qr代碼激活prepareforsegue
- 9. Cassandras Opscenter替代使用開源代碼發行版的人
- 10. UISearchDisplayController tableView不會觸發prepareForSegue
- 11. prepareForSegue:發件人:沒有在應用程序中使用SWRevealViewController調用菜單
- 12. 當在prepareForSegue中傳遞數據時iPhone應用程序崩潰:發件人
- 13. 替代人行橫道
- 14. ISPConfig替代個人使用
- 15. 機器人 - FragmentActivity代替TabActivity
- 16. 電子郵件發件人 - 收件人代碼錯誤
- 17. unwind segue vs. popViewControllerAnimated
- 18. UINavigationController攔截 - popViewControllerAnimated:
- 19. dismissViewControllerAnimated VS popViewControllerAnimated
- 20. 的UITableView popViewControllerAnimated
- 21. 替代錯誤地觸發事件
- 22. 替代System.Net.Mail.MailMessage發送電子郵件?
- 23. 未知發件人PHP(內部代碼)
- 24. Flash Media Server替代多人遊戲開發
- 25. Borland開發人員工作室的開源替代方案
- 26. 如何使用替代發件人/組織者創建Outlook會議請求?
- 27. 是什麼[popViewControllerAnimated];做?
- 28. 傳遞串回popViewControllerAnimated
- 29. 調用popViewControllerAnimated兩次
- 30. popViewControllerAnimated會影響viewwillappear?