[英]Send information from dismissing ViewController
我的應用程序中有2次瀏覽。 view1當前view2。 我可以通過presentModalViewController
或類似的方法來做到這一點: self.navigationController pushViewController
無關緊要。
我需要在view2中選擇一些行,然后使用一些信息轉到view1。 沒有單義詞和全局變量怎么辦?
您可以使用NSNotificationCenter發布通知。 然后,您將使用NSDictionary * infos傳遞數據。
1.您可以使用NSUserDefaults
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.