• 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: UILabel contentView is 'left' out of IB but the default should be 'redraw'
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UILabel contentView is 'left' out of IB but the default should be 'redraw'


  • Subject: Re: UILabel contentView is 'left' out of IB but the default should be 'redraw'
  • From: David Duncan <email@hidden>
  • Date: Tue, 8 Feb 2011 09:11:25 -0800

On Feb 8, 2011, at 7:15 AM, Roland King wrote:

> 1) does that sound like an IB bug which needs reporting?

This looks like a bug in the documentation, as labels created in code are created using left content mode.

> 2) why does setFrame cause a redraw when setBounds/setCenter doesn't if the contentMode is set to 'left' either they all should, or they all shouldn't.


This behavior is specific to UILabel and it is probably a bug that setBounds: doesn't do this as well. However this resizing is only done in cases where the text options set on the label would require such behavior (such as setting auto sizing text).

Since it sounds like you want the redraw behavior, I would probably just make that change in IB and go from there.
--
David Duncan

_______________________________________________

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: UILabel contentView is 'left' out of IB but the default should be 'redraw'
      • From: Roland King <email@hidden>
References: 
 >UILabel contentView is 'left' out of IB but the default should be 'redraw' (From: Roland King <email@hidden>)

  • Prev by Date: why does UIScrollView call layoutSubviews every time it scrolls?
  • Next by Date: Re: why does UIScrollView call layoutSubviews every time it scrolls?
  • Previous by thread: UILabel contentView is 'left' out of IB but the default should be 'redraw'
  • Next by thread: Re: UILabel contentView is 'left' out of IB but the default should be 'redraw'
  • Index(es):
    • Date
    • Thread