Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development > iPhone SDK Development - Advanced Discussion

Reply
 
LinkBack Thread Tools Display Modes
Old 10-01-2011, 08:15 AM   #1 (permalink)
Registered Member
 
SundialSoft's Avatar
 
Join Date: Oct 2010
Location: Scotland
Posts: 176
SundialSoft is on a distinguished road
Default question about uiviewcontroller transitions

I have an app which is navigation controller based with 8 'sub views' being accessed in the same way as this:-
Code:
              adviceVC *controller = [[adviceVC alloc] initWithNibName:nil bundle:nil];
            controller.modalTransitionStyle = UIModalTransitionStyleCrossDissolve;
            [[self navigationController] pushViewController:controller animated:YES];
All of the views transition correctly with animation except the one to which I add a tabbar to the navigation controller like this in 'viewdidload' :-
Code:
    [self.navigationController.view addSubview:tabBarController.view];
When this view is loaded there is no animation though when it exits back to the main view the animation works fine. I remove the tabbar in 'viewwilldisappear'.

I don't know what's happening here so I wonder if anyone understands why I don't see the animation.

ps: I can get an animation by adding UIViewAnimationTransitionFlipFromRight in 'viewdidload' but that does not match the slide out & in that happens automatically when the uiviewcontroller loads.

This is not a show stopper, I'm just trying to understand what is really happening. nb: If I add the tabbar to the view instead of the navigationcontroller the bottom of the view is cut off with only the top half of the tabbar showing. One way to get a very thin tabbar
SundialSoft is offline   Reply With Quote
Old 10-11-2011, 11:30 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2011
Location: NYC
Posts: 29
objch is on a distinguished road
Default

The difference is that with the tab bar you're manually adding a view as a subview, which can't be animated.

Try setting the view.alpha to 0, add it as a subview, then animate setting the alpha back to 1.
objch is offline   Reply With Quote
Old 10-20-2011, 10:02 PM   #3 (permalink)
Registered Member
 
Join Date: Jan 2009
Posts: 113
jonusx is on a distinguished road
Default

If you're messing around with views like that you should implement a custom container controller or you're setting yourself up for a world of trouble
__________________
What do you have to share? Share and view pics Oneshare

Play Magic: The Gathering? Try The Sylvan Archives!

Warhammer 40k your thing? W40k Manager is your thing.

Like karaoke? Try iSing Karaoke Locator
jonusx is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 378
9 members and 369 guests
bignoggins, epaga, hussain1982, jcdevelopments, LunarMoon, markolo, omagod, pinacate, skog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,643
Threads: 94,110
Posts: 402,860
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Diligent
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:55 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0