ViewDeck / ViewDeck

An implementation of the sliding menu found in various iOS apps.
5.32k stars 963 forks source link

Unable to set image of UITabBarItem #85

Closed chourobin closed 12 years ago

chourobin commented 12 years ago

Currently using a tabbarcontroller with an IIViewDeckController, however, the tabbaritem image does not appear.

In the viewcontroller: init: self.tabbaritem.image = [UIImage imagedNamed:@"example.png"];

In the TabbedExample, I also notice the first tabbar icon is missing.

Any suggested workarounds?

chourobin commented 12 years ago

So I moved this parts of the logic into the viewDidLoad method and the appDelegate and now it works fine. I dont know if this is a bug with IIViewDeckController where I am unable to set the title and image of the tabbaritem during the initialize phase.

Inferis commented 12 years ago

This is a bug. The tabbaritem isn't proxied, but it should (same as with navigationController etc). I'll add it.

Inferis commented 12 years ago

Should work now. Was a hard one.

chourobin commented 12 years ago

Awesome job, looks good.