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

Exception: Defaults must have been set when accessing options #58

Open
skywalkerlw opened this issue Nov 12, 2013 · 2 comments
Open

Exception: Defaults must have been set when accessing options #58

skywalkerlw opened this issue Nov 12, 2013 · 2 comments

Comments

@skywalkerlw
Copy link

I'm sure i'm using the latest code (i pulled yesterday)

During trying to execute following code:

UIViewController * parent = [self.view containingViewController];
if ([parent respondsToSelector:@selector(dismissSemiModalView)]) {
[parent dismissSemiModalView];
}

An exception is given below:

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Defaults must have been set when accessing options.'

I searched in history and found this kind of issue happened long time ago. However, how could this happen in latest version ?

Thanks so much if somebody could look into it

@coryhymel
Copy link

I'm having the same issue at the moment.

@coryhymel
Copy link

I was able to find out what was causing the issue. If you presenting from a UIViewController that is wrapped in a UINavigationController, you have to modally present like this:

[self.navigationController presentSemiViewController....

Instead of doing:

[self presentSemiViewController....

The example project is a bit confusing.

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

2 participants