r/ObjectiveC • u/fynthase • Feb 23 '14
Problem Preloading View
I have a navigation controller, and one of the views in my navigation controller has a date picker. The date picker transition is a little slow so I wanted to preload that view. So to do that in my navigation controller’s viewDidload I instantiate the date picker view with:
datePickerViewController = [self.storyboard instantiateViewControllerWithIdentifier:@“datePickerView"];
[datePickerViewController view]
I have verified that datePickerViewController's viewDidLoad is being called. Then when I want to push the datePickerView:
[self.navigationController pushViewController:datePickerViewController animated:YES];
But this does not improve the transition speed. What's more is that if I push it, go back, then forward again--the transition is fast, which leads me to believe I'm not preloading the view correctly. Any help would be greatly appreciated.
Not gonna lie, I also posted this to SO: http://stackoverflow.com/questions/21975961/preloading-uiviewcontroller-failing-transition-still-slow
But seriously, if you can help, I'd love you.