• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UIView animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIView animation


  • Subject: Re: UIView animation
  • From: Matt Neuburg <email@hidden>
  • Date: Fri, 03 Sep 2010 08:50:38 -0700
  • Thread-topic: UIView animation

On Fri, 03 Sep 2010 00:11:43 +0200, Christian Ziegler <email@hidden>
said:
>Hi all,
>
>I could use your help because I'm running out of ideas!
>
>Here's the situation. I got this custom view on screen which I want to remove
from the screen by moving it outside the left border of the screen. However at
the same time, I want to move it back in from the right side but at a different
y-Coordinate. So for instance it moves out at y=44 and at the same time it moves
back in from the other side at y=0.
>
>I tried several approaches and the most promising (I reckon) is to create a
copy of the view. This is not so easy though because UIView does not implement
NSCopying. My custom view also has subviews and well the animation apparently
gets a little confused if you animate two different (equal but different object)
views which share the same subviews.

I'm sure it's not true that you're running out of ideas; it seems to me that
you're just avoiding the obvious: two different views that look alike. You
created this view and its subviews at some time; therefore you can do it
again. It's probably just a question of planning ahead. m.

--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: UIView animation
      • From: Erik Buck <email@hidden>
  • Prev by Date: Re: CALayer -drawInContext and GCD
  • Next by Date: Re: where are the CALayer struts and springs on iPhone?
  • Previous by thread: Re: UIView animation
  • Next by thread: Re: UIView animation
  • Index(es):
    • Date
    • Thread