• 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: Auto-Layout Strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Auto-Layout Strangeness


  • Subject: Re: Auto-Layout Strangeness
  • From: Graham Cox <email@hidden>
  • Date: Thu, 31 Jul 2014 09:28:13 +1000

On 31 Jul 2014, at 6:57 am, Dave <email@hidden> wrote:

> (void) drawRect:(CGRect) theRect
> {


> myRect = CGRectInset(theRect,0,0);


<theRect> is the DIRTY rect of the view, not its bounds, so myRect is derived from it. Framing and filling that isn't doing what you think it is - it's probably empty at first for example. You need to use self.bounds instead of <theRect>.

--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: Auto-Layout Strangeness
      • From: Dave <email@hidden>
References: 
 >Auto-Layout Strangeness (From: Dave <email@hidden>)
 >Re: Auto-Layout Strangeness (From: David Duncan <email@hidden>)
 >Re: Auto-Layout Strangeness (From: Dave <email@hidden>)

  • Prev by Date: 10.5 Load Fonts for use in webview
  • Next by Date: Weird exception after converting to autolayout
  • Previous by thread: Re: Auto-Layout Strangeness
  • Next by thread: Re: Auto-Layout Strangeness
  • Index(es):
    • Date
    • Thread