Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OUIViewController asserts precondition unretained_prospective_parent? #74

Open
memmons opened this issue Apr 29, 2013 · 0 comments
Open

Comments

@memmons
Copy link

memmons commented Apr 29, 2013

In OUIViewController there is an OBPRECONDITION that requires unretained_prospective_parent to not be nil (see below). However, this will be nil in some cases. For example, using an OUIScalingViewController subclass in a view controller embedded in a nav controller via storyboard. In this case, willMoveToParentViewController is never called, which is where _unretained_prospective_parent is initially being set.

- (void)didMoveToParentViewController:(UIViewController *)parent;
{
    DEBUG_PARENT_VC(@"In %s with parent: %@", __func__, parent);
    OBPRECONDITION(parent == _unretained_prospective_parent);
    ...
    _unretained_parent = parent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant