• 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: Panning a View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Panning a View


  • Subject: Re: Panning a View
  • From: David Blanton <email@hidden>
  • Date: Tue, 28 Jul 2009 11:23:30 -0600

That was the right approach ... one twist, I set the view frame when drawRect is called to the size of my image.
Works great.


Thanks!

On Jul 28, 2009, at 10:01 AM, Graham Cox wrote:


On 29/07/2009, at 1:56 AM, David Blanton wrote:

Is this the correct approach:

In the MyDocument.xib  add a scroll view to the window.

At some place in the app instance a view and set this view as the document view of the scroll view.

Draw into this view.

Scrollers will update etc.


Add the view to the nib, Use Layout -> Embed Objects In -> Scroll View.

Make the size (frame) of the view bigger than the scrollview and the view will scroll.

--Graham






_______________________________________________

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: Panning a View
      • From: Kyle Sluder <email@hidden>
References: 
 >Panning a View (From: David Blanton <email@hidden>)
 >Re: Panning a View (From: David Blanton <email@hidden>)
 >Re: Panning a View (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Building iPhone application as backward compatible
  • Next by Date: Re: nil there not here
  • Previous by thread: Re: Panning a View
  • Next by thread: Re: Panning a View
  • Index(es):
    • Date
    • Thread