Results 1 to 4 of 4
Discuss [Dev] Flip a view in 3D ? at the iPhone Developer Exchange - Hackint0sh.org; Hi guys, Is it possible with the iPhone SDK to automatically animate a view and ...
  1. #1
    Newbie Array

    Join Date
    Apr 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default [Dev] Flip a view in 3D ?

    Hi guys,

    Is it possible with the iPhone SDK to automatically animate a view and flip it 180 degrees ? Examples are :

    1) when one is in a phonecall, and taps the "keypad" icon, it revolves and displays the keypad, then when one taps "hide keypad" , it returns to the original state

    2) in the iPod App, when the device is in landscape mode, and the current album is shown, tapping on the album shows the songs in the album (i am walking about the actual effect when the view is revolving/flipping around).

    I know this is possible using OpenGL ES, but I am sure there could be some easier out-of-the-box way to do this effect?

    Thanks.

    Angel



  2. #2
    Rookie Array

    Join Date
    Dec 2007
    Posts
    25
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Look at the UIShowcase Samples in of the SDK Examples! There is a flip vor any view explained.

  3. #3
    Newbie Array

    Join Date
    Apr 2008
    Posts
    5
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    heres what i do. you have to replace A B and C for views. A is the view where the 3d effect between B and C will take place

    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:1];

    [UIView setAnimationTransition[B superview] ?
    UIViewAnimationTransitionFlipFromLeft : UIViewAnimationTransitionFlipFromRight)
    forView:A cache:YES];
    if ([C superview])
    {
    [C removeFromSuperview];
    [A addSubview:B];
    }
    else
    {
    [B removeFromSuperview];
    [A addSubview:C];
    }

    [UIView commitAnimations];

  4. #4
    Professional Array

    Join Date
    Jul 2007
    Posts
    69
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    11

    Default

    does this allow you to flip views with trans bgs?
    on toolchain i had a hard time using the flip effect and having it not put a black bg on the whole layer. but i know its possible because the phone app and maps app use the layer effects and have layer underneath show through.

 

 

Similar Threads

  1. Flip Animation
    By computerartist in forum iPhone Developer Exchange
    Replies: 1
    Last Post: 09-09-2010, 02:49 AM
  2. View to View NSUserDefault - Source code included
    By jjgraz in forum iPhone Developer Exchange
    Replies: 0
    Last Post: 03-07-2009, 10:54 PM
  3. Flip view upside down?
    By irobb in forum General
    Replies: 0
    Last Post: 03-06-2009, 04:46 AM
  4. Replies: 1
    Last Post: 07-25-2008, 02:12 PM
  5. MacNN: Flip Video's new Flip Minos spotted in catalog
    By hackint0sh in forum Latest Headlines
    Replies: 0
    Last Post: 05-21-2008, 09:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 11:10 AM.
twitter, follow us!