-
Notifications
You must be signed in to change notification settings - Fork 265
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
UIViewController not key value coding-compliant #29
Comments
It looks like you haven't set the subclass of the view controller to "PulleyViewController" in your Storyboard. If you had, this would say "PulleyViewController" instead of "UIViewController":
Checkout the example project in the main repo for a working example. |
I finally got it! Anyways I'm so happy, I've been wanting to make this work for so long! great work on this and cheers |
Ah! That would do it! Nice find. Let me know if you have any questions. |
Just realised this 3 seconds before finding this thread. Maybe this piece of info is worth to be added to the Readme? |
Stumbled across this problem too. Would never have found the solution without finding this. |
Added a note about this (with a link to the issue) to the Interface Builder section of the README. Thanks for the heads up everyone! |
@alpa99 Please make a new issue and I can assist you there. Posting in this issue isn’t on topic. |
Xcode 9.1.4, latest version of Pulley. If I have the Module as Pulley, I get: Unknown class _TtC6Pulley20PulleyViewController in Interface Builder file. If I set the Module to None, I get: Unknown class PulleyViewController in Interface Builder file. Both situations crash. If I check "Inherit Module From Target", then it works. |
That is an expected Interface Builder behavior, and not related to Pulley. |
Just thought I would post it for anyone who ran into the same thing...
… On Sep 24, 2018, at 6:02 PM, Brendan Lee ***@***.***> wrote:
That is an expected Interface Buildee behavior, and not related to Pulley.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#29 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/ACx8-vjXUxTQEOxwPgxLNyKXQg5zDzvxks5ueYC8gaJpZM4LMW-z>.
|
I'm getting an exception when I try to switch to a pulleyViewController
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIViewController 0x143d485f0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key drawerContentContainerView.
As per instructions, I added two container views in the pulleyviewcontroller and linked the outlet drawerContentContainer to a container view. And, I also linked the outlet primaryContentContainer to the other container view. These two container views segue to ordinary UIViewControllers.
I did not do any customization but I am getting this exception. My project is primilary objective-c but I don't think this has much to do with it. I even tried to use a forked project https://github.com/tadelv/Pulley/tree/objc_friendly but the exception still arises.
TLDR: followed insturctions to setup PulleyViewController in interface builder, NSUnknownKeyException arises
The text was updated successfully, but these errors were encountered: