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

Won't init at runtime. Installation issue? #12

Closed
jimijon opened this issue Jun 16, 2015 · 1 comment
Closed

Won't init at runtime. Installation issue? #12

jimijon opened this issue Jun 16, 2015 · 1 comment

Comments

@jimijon
Copy link

jimijon commented Jun 16, 2015

I am trying this out on a little project that I have. I added the TabBarController.swift and the FrostedSidebar.swift files to my app. In story board I added a TabBarController and made TabBarController.swift its object. Then I made this the startup view.

I run the app, but it never actually calls the FrostedSideBar init in TabBarController.

sidebar = FrostedSidebar(itemImages: [
UIImage(named: "gear")!,
UIImage(named: "globe")!,
UIImage(named: "profile")!,
UIImage(named: "profile")!,
UIImage(named: "profile")!,
UIImage(named: "profile")!,
UIImage(named: "star")!],
colors: [
UIColor(red: 240/255, green: 159/255, blue: 254/255, alpha: 1),
UIColor(red: 255/255, green: 137/255, blue: 167/255, alpha: 1),
UIColor(red: 126/255, green: 242/255, blue: 195/255, alpha: 1),
UIColor(red: 126/255, green: 242/255, blue: 195/255, alpha: 1),
UIColor(red: 126/255, green: 242/255, blue: 195/255, alpha: 1),
UIColor(red: 126/255, green: 242/255, blue: 195/255, alpha: 1),
UIColor(red: 119/255, green: 152/255, blue: 255/255, alpha: 1)],
selectedItemIndices: NSIndexSet(index: 0))

It seems to skip over the initializer.

Did I install it wrong?

@edekhayser
Copy link
Owner

Your code appears to be correct, so I can't say what is wrong in your project. Try comparing it to the sample project, and if you still can't find anything wrong, then post some more information/code so I can try to help you better.

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