On Jul 11, 2011, at 11:49 PM, Development wrote: > CGSize newSize = rect.size; > CGSize imgSize = [self.text sizeWithFont:self.font]; > imgSize.width +=6; //this does nothing > //everything below adjusts for the shadow which is a flipping train > wreck of its own. > CGPoint p; > CGFloat x=0.0,y=spread;
Just for the record, the likely reason why this does nothing is because the rect you specify to draw the text into is still going to be clipped by the width of the UILabel – so if the label is X points wide, it really doesn't help to ask to draw into a rectangle X+6 points wide – you need the label to be X+6 points wide. -- David Duncan _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com