Re: UIView, UILabel, and sizeToFit
Re: UIView, UILabel, and sizeToFit
- Subject: Re: UIView, UILabel, and sizeToFit
- From: Luke the Hiesterman <email@hidden>
- Date: Wed, 28 Apr 2010 10:05:41 -0700
Usually for logging this sort of thing, you're behooved to use the convenience methods provided in UIGeometry.h, namely NSStringFromCGRect() or NSStringFromCGPoint().
Luke
On Apr 28, 2010, at 9:50 AM, Fritz Anderson wrote:
> On 27 Apr 2010, at 8:56 PM, Matt James wrote:
>
>> Unfortunately, NSLog-ing the values of label.frame.size.width and
>> containerView.frame.size.width shows that the values are "0".
>
> Show us your code, particularly all the lines that call NSLog. The first thing I'm looking to see is whether you're trying to print the width with %d or %i.
>
> — F
>
> _______________________________________________
>
> 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
_______________________________________________
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