Re: Panning a View
Re: Panning a View
- Subject: Re: Panning a View
- From: Erik Buck <email@hidden>
- Date: Tue, 28 Jul 2009 11:10:44 -0700 (PDT)
That was the right approach ... one twist, I set the view frame when
drawRect is called to the size of my image.
Don't do that. Do read the documentation. The only thing you should do in -drawRect: is draw. In particular, changing the frame inside drawRect: will invalidate all or part of the calculations performed by the framework in -display and other view drawing methods that are called before and after -drawRect:.
_______________________________________________
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