Code Monkey home page Code Monkey logo

Comments (13)

kawoou avatar kawoou commented on May 24, 2024

Hi andyden9.
You say mean that even if you specify a "Custom Class" in the identity inspector, it is initialized as if the default UIViewController.

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

Yes exactly, do you happen to know what caused this? I've stuck on this for more than 5 hrs😭

2018-01-17 10 52 24

2018-01-17 11 14 35

from kwdrawercontroller.

kawoou avatar kawoou commented on May 24, 2024

I mean the ViewController with "left" or "main".
How did you find out that the DrawerController was initialized with a pure UIViewController?

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

Oh sorry, lol, because I set the DrawerController as the initial View Controller, and after storyboard init, I only got a blank UIViewController as I showed in the debug view hierarchy. Are you busy today? Could you add my wechat(anddddddy) or skype(appleandy94) to instruct me a bit if you're available?

2018-01-17 10 52 24

2018-01-17 11 14 35

I got them all set:
2018-01-16 6 26 48
2018-01-16 6 26 43
2018-01-16 6 26 35

The only difference between your demo and my project I can find is, the demo is a pure swift project, and mine is a pure objective-c project....

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

Sorry my bad, it seems showing the '😭' label, so DrawerController is inited, I guess the problem is the DrawerController not showing the 'main' controller.

2018-01-17 11 57 43

If it works, simulator should show this:

2018-01-17 12 02 00

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

2018-01-17 12 33 58

I found something else, though it's correctly set in the story board as shown(in previous messages), the viewDidLoad method in DrawerController never gets called....

from kwdrawercontroller.

kawoou avatar kawoou commented on May 24, 2024

You use the swift library in the objective-c project.
If so, did you specify a bridge header?

This symptom seems to be similar to what happens when a Custom Class is incorrectly specified.

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

Yes I am using the KWDrawerController as the only swift library in my objective-c project 😱 and I didnt' specify a bridge header since I thought CocoaPods will automatically generate it for me..... I guess that's the issue, let me try to specify a header manually. Thank you Kawoou! 🙏

from kwdrawercontroller.

kawoou avatar kawoou commented on May 24, 2024

Fortunately!
Happy Development😆

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

Hi Kawoou!

Storyboard is still no luck for me so I switched to code, and I've found an issue, that the setViewController:side: method in DrawerController maybe duplicated with some system method so OC can't find this method.

After rename this to setVController:side: I can use it and everything just work out fine in OC.

May I submit a pull request to fix this? Just name changing.

Cheers,
Andy

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

2018-01-17 3 35 56

from kwdrawercontroller.

kawoou avatar kawoou commented on May 24, 2024

It's really weird in objc!

PR is always welcome, even with small modifications 👍
Thank you for using this project.

from kwdrawercontroller.

andyden9 avatar andyden9 commented on May 24, 2024

Thank you for sharing this great library! I've submitted the PR, please review.

from kwdrawercontroller.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.