【发布时间】:2013-04-17 00:21:00
【问题描述】:
我在我的主 ViewController 中初始化表、数据等。如需更多设置,我想调用另一个 Viewcontroller:
DateChangeController *theController = [self.storyboard instantiateViewControllerWithIdentifier:@"dateChangeController"];
[self presentViewController:theController animated:YES completion:^{NSLog(@"View controller presented.");}];
稍后我会返回一个segue(自定义:)
NSLog(@"Scroll to Ticket");
[self.sourceViewController presentModalViewController:self.destinationViewController animated:YES];
我的问题:
返回到我的主 ViewController 后,(每次)都会调用 viewDidLoad。我读到,ARC 在“转到”另一个 ViewController 并调用 viewDidUnload 方法后释放了我的 mainView,但我想保留我的所有数据和表格我在开始时初始化..
有什么解决办法吗?非常感谢!
【问题讨论】:
标签: iphone storyboard segue viewdidload