NOUSguide / NGTabBarController

A custom TabBarController implementation for iPhone and iPad
Other
263 stars 0 forks source link

iOS 4 bug #5

Closed fireblue closed 12 years ago

fireblue commented 12 years ago

When in iOS 4, NGTabBarController will disappear with these steps:

  1. set up a NGTabBarController with serveral view controllers.
  2. presentModalViewController in any of the view controllers.
  3. dissmissModalViewController

then the tab bar just disappears. tested with the demo given with the source.

thanks :)

ElonKim commented 12 years ago

I have the same issue.

and

NGTabBarController uses [UIImage capInsets] without checking iOS5.

myell0w commented 12 years ago

I've added a readonly property ng_tabBarController on UIViewController (UIViewController+NGTabBarItem.h) to get the enclosing NGTabBarController similar to what UIViewController provides for UITabBarController. If you use the tabBarController to present the modal view controller, everything works as expected, have a look at the modified demo. I also now check if capInsets is available.