TabBar as rootController flip animation.

Posted by user558076 on Stack Overflow See other posts from Stack Overflow or by user558076
Published on 2011-01-08T03:47:04Z Indexed on 2011/01/08 3:54 UTC
Read the original article Hit count: 189

Filed under:
|
|
|

Hi there, I'm using a TabBarController as the root controller for my app. I have all the views I use (5 tabs) all hooked together through it in interface builder. What I'm trying to do is trigger a slide or flip animation when moving between tabs. However, I only want this to occur when I change tabs programmatically (ie the animation is triggered when someone does a swipe gesture in the one of the views, but not when they just select one of the tabs). The way I'm currently handling this is by calling:

[appDelegate.myTab setSelectedIndex:0];

when the iphone detects a swipe. I've been searching the internet for 5 straight hours and can't seem to find a way to add an animation here. It'd be really cool if there were something like:

[appDelegate.myTab setSelectedIndex:0 animated:(YES)];

However, there isn't... I can't imagine no one's ever tried this before, but for the life of me, I can't find anything online that explains how this can be done. Thank you in advance for your help.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about animation