Creating a Maps like animation?

Discussion in 'iOS Programming' started by iLoveDeveloping, Oct 3, 2009.

  1. iLoveDeveloping macrumors regular

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #1
    Hello,

    Just wanted to know if there is any way to create the "peel back" map view for other Application View windows when you say, go from one screen to the next! I have 1st view, then i press "Next" and the page Peels away to reveal the next page underneath it (well, next screen, but it looks like the other screen was under it..) Any code that does this? I can only seem to do the standard screen wipe. Thanks guys..

    Here is a Screenshot of what i mean...

    [​IMG]
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #2
    UIViewAnimationTransition does have a UIViewAnimationTransitionCurlUp mode for use with UIView's setAnimationTransition:forView:cache: class method, but I think if you want something where the view is not entirely replaced with the new one and still shows partially, you're probably gonna need to roll your own. I understand there are possibly APIs calls that do this but they are undocumented and, thus, unsupported.
     
  3. iLoveDeveloping thread starter macrumors regular

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #3
    Oh ok, thanks.. Is there a list of Transitions you can use somewhere? Like a FULL list? Can't seem to find that...
     
  4. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #4
    How have you been looking? Did you search the Developer Documentation for UIViewAnimationTransition?
     
  5. Rappa819 macrumors newbie

    Joined:
    Feb 28, 2008
  6. iLoveDeveloping thread starter macrumors regular

    Joined:
    Sep 24, 2009
    Location:
    Ireland
    #6
    Thats not good, well, (Exactly what i was looking for thank you SO very much!) But it looks like Apple don't allow you to use this animation?! That is really not fare!! It's like, ok, we (Apple) can have all the cool looking Apps for ourself but if one of you tries to make them look like this your not getting into our store!!! WTF!!! :mad:
     
  7. Rappa819 macrumors newbie

    Joined:
    Feb 28, 2008
    #7
    I agree, but remember with the 3.0 update they came out with over a thousand new api's? So maybe with the next update they will have this for you.

    Of, you can build your own animation.
     
  8. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #8
    Life is "unfare". ;)

    Well, this is a tricky area. Sometimes developers are able to code their own cool looking apps that work the same way and get them approved. Other times, Apple feels your feature too-closely mimics one of their own features and the app is rejected because it'll "confuse the consumer". Take the case of the app that was rejected for having chat bubbles that looked to similar to the Messages' ones.

    And consider that Apple may have other reasons for not making this part of the API public yet. For example, there are some bugs with it that they are currently able to workaround but are not wanting the developers to have to deal with... yet.
     

Share This Page