I've created and laid out a UIView - everything looks fine, however while implementing a delegate method, I noticed a very odd frame orientation change.
The frame goes from: {{0, 0,} {1024, 768}} to {{0, 0}, {768, 1024}} <---- Flipped!
Update:
The problem only occurs when my view controller is presented (aka 'modally') from the current view controller. If the view controller is added directly to my UINavigationController, there's no issues.
So, when adding a new subview (a custom popover) via the delegate method, the layout goes haywire. But only if the view controller is being presented as follows:
- (void)presentPicker
{
GTPPickerController* pickerViewController = [assembly pickerViewController];
[pickerViewController setDelegate:self];
[self presentViewController:pickerViewController animated:YES completion:nil];
}
Question:
- Is this a common known problem/mistake wrt 'modal' view controllers?
- How can I fix this?
- Could it be related to iOS7? I've done this kind of thing countless times before, and never had an issue.