Re: UILabel contentView is 'left' out of IB but the default should be 'redraw'
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