andreamazz / SlideOutNavigation

SlideOut Navigation Controller for iOS.
MIT License
210 stars 49 forks source link

slideout looks grey in ios7 #52

Closed kashifzaidi1 closed 10 years ago

kashifzaidi1 commented 10 years ago

is there anyfix where slidout looks the same in ios 6 and ios 7 in ios6 it looks blue whereas in ios 7 it is grey

andreamazz commented 10 years ago

Hi @kashifzaidi1 The style of the control depends on what options you pass to it. As you can see here around line 27: https://github.com/andreamazz/SlideOutNavigation/blob/master/SlideOutSample/SlideOutSample/AppDelegate.m

Just use the default options dictionary for both system version, or provide your own customization.

kashifzaidi1 commented 10 years ago

But what i wanted to ask was why there is a difference in colors. the defaults should act the same weather in ios6 or ios7

andreamazz commented 10 years ago

That's due to the new APIs fo the navbar tint color in iOS7. The sample currently uses [UINavigationBar appearance] setTintColor:, with iOS7 you need to also set [UINavigationBar appearance] setBarTintColor:

kashifzaidi1 commented 10 years ago

thanks