On Fri, 03 Sep 2010 00:11:43 +0200, Christian Ziegler <chris.zieg...@me.com>
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 = m...@tidbits.com, <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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to