UIModalTransitionStylePartialCurl with UITabBarController
UIModalTransitionStylePartialCurl with UITabBarController
- Subject: UIModalTransitionStylePartialCurl with UITabBarController
- From: Dan Hopwood <email@hidden>
- Date: Fri, 29 Jul 2011 14:36:01 +0100
This question has been asked a lot e.g.
here<http://stackoverflow.com/questions/4494337/partial-curl-modal-transition-style-while-preserving-tool-tab-bar/>but
as far as I can see is yet to be answered in full.
I have a `UITabBarController` with a `UINavigationController` as the root vc
for one of the tabs, which itself has a `MKMapView` as its root vc. The
behaviour I want is for the map to partially curl upwards, *while leaving
the tab bar in place* (similar to the Maps app).
So far all I have managed to get working is for the whole view to curl,
which isn't as nice.
Solutions I have seen are to set the `hidesBottomBarWhenPushed` property to
NO, which would make sense however this doesn't seem to work, (unless I am
doing something wrong).
For clarity, my code is as follows:
MyVC *aView = [MyVC init]; // init here is just a static convenience
method that does the alloc etc.
aView.modalTransitionStyle = UIModalTransitionStylePartialCurl;
aView.hidesBottomBarWhenPushed = NO;
For the presenting part, I have tried the two alternatives below, neither of
which seem to work:
[self presentModalViewController:updateStatus animated:YES];
[[self navigationController] presentModalViewController:updateStatus
animated:YES];
Any help much appreciated.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden