2

There are four kinds of animations provided by apple with the modal segue. But neither is my favorite, I prefer the animation like the push segue animation? How could I archive it? Is there any open source code for custom segue with different animations? Thanks in advance!

ps. Actually I have a tabView with several child view, one of them is a tableView, each cell will drill in an detail view. It is normal to push the detail view, but I do not want the tab bar come into the detail view as well. Then I choose modal the detail view. But i prefer the push animation.

lu yuan
  • 7,207
  • 9
  • 44
  • 78
  • 1
    Animations are not just about preference of the developer but the experience of the user. Pushing a modal is going to disorient and confuse your users. If you want to push a view then you should actually push the view, Modal views and views pushed on the stack are meant to serve separate purposes. – Ryan Poolos May 12 '12 at 16:23
  • @RyanPoolos I think you are right – lu yuan May 12 '12 at 16:31
  • @RyanPoolos Actually I have a tabView with several child view, one of them is a tableView, each cell will drill in an detail view. It is normal to push the detail view, but I do not want the tab bar come into the detail view as well. Then I choose modal the detail view. – lu yuan May 12 '12 at 16:45

1 Answers1

5

After seeing your comment I figured this would help. There is a setting to hide your tabBar when pushing instead of you having to fake a push with a modal transition.

enter image description here

Also in code can be easier. Check out this SO Hiding UITabBar when pushing a UIView

Community
  • 1
  • 1
Ryan Poolos
  • 18,421
  • 4
  • 65
  • 98
  • http://stackoverflow.com/questions/675887/hiding-uitabbar-when-pushing-a-uiview Check this question on why it isn't working :) – Ryan Poolos May 12 '12 at 17:51
  • If the detail view is just a UIViewController, works, but if it is a UITableViewController, DON'T WORK. It's odd. – lu yuan May 13 '12 at 03:56
  • Very odd indeed. But lately I've had a knack for uncovering Apple framework oddities lol. – Ryan Poolos May 13 '12 at 04:19
  • works now. the self.hidesBottomBarWhenPushed = YES; should not put in the - (void)viewDidLoad, I think maybe it should be put in "- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender:" – lu yuan May 13 '12 at 04:31
  • Glad you were able to figure it out :) Happy Coding. – Ryan Poolos May 13 '12 at 13:56