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

2011-02-09 Thread Roland King
Thanks for both your answers to my questions today David. I'll file a docs bug on the UILabel and if I have time to distill out a small test case for the resizing I'll file that too, I'm not quite sure what a UILabel should do if it's set to 'left' and is resized, but I think it should do the sa

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

2011-02-08 Thread David Duncan
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 >

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

2011-02-08 Thread Roland King
According to the documentation for UILabel the default contentMode is 'redraw'. I've been chasing an issue in my code where I set the center and bounds of one in layoutSubviews of the parent to keep it centered but it wasn't being, it was moving all over the place. I randomly found that calling