Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

stoopkitty

macrumors member
Original poster
Jan 26, 2010
62
0
I can do this from IB, but not in code. All it does it make it What am I doing wrong?
Code:
textToConvertLabel.font = [UIFont fontWithName:@"Helvetica Bold" size:17];


Also, another thing I was wondering about is that I have to set the background color of the text to clear manually by doing
Code:
textToConvertLabel.backgroundColor = [UIColor clearColor];

If I dont change the background color it defaults to white. It seems like it should default to clear. Am I doing something wrong or is that just the way it is?
 
I can do this from IB, but not in code. All it does it make it What am I doing wrong?
Code:
textToConvertLabel.font = [UIFont fontWithName:@"Helvetica Bold" size:17];


Also, another thing I was wondering about is that I have to set the background color of the text to clear manually by doing
Code:
textToConvertLabel.backgroundColor = [UIColor clearColor];

If I dont change the background color it defaults to white. It seems like it should default to clear. Am I doing something wrong or is that just the way it is?

@"Helvetica-Bold"
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.