Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
按下 NavigationController 上的返回按钮后如何保存信息?然后使用当前 ViewController 中的数据。
在当前控制器 viewDidLoad
self.navigationController.delegate = self;
然后实施
– navigationController:willShowViewController:animated: – navigationController:didShowViewController:animated:
来源: https ://developer.apple.com/library/ios/documentation/UIKit/Reference/UINavigationControllerDelegate_Protocol/Reference/Reference.html