• 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: Erik Buck <email@hidden>
  • Date: Fri, 3 Sep 2010 09:14:26 -0700 (PDT)

I would add that any graph of objects that implements the <NSCoding> protocol can also be trivially copied.  Interface Builder encodes and decodes object graphs when saving the xib/nib files and also when entering test interface mode.

As a blatant plug:
See "Cocoa Design Patterns" ISBN: 0-321-53502-2
Chapters 11, "Archiving & Unarchiving", and 12 "Copying".

--- On Fri, 9/3/10, Matt Neuburg <email@hidden> wrote:

> From: Matt Neuburg <email@hidden>
> Subject: Re: UIView animation
> To: "Christian Ziegler" <email@hidden>
> Cc: email@hidden
> Date: Friday, September 3, 2010, 11:50 AM
> 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
>
_______________________________________________

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

References: 
 >Re: UIView animation (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: where are the CALayer struts and springs on iPhone?
  • Next by Date: CALayer instant content update
  • Previous by thread: Re: UIView animation
  • Next by thread: how to set the value of NSLevelIndicatorCell in tableView
  • Index(es):
    • Date
    • Thread