How do I make a UILabel in "Helvetica Bold" font? (programmatically)

Discussion in 'iOS Programming' started by stoopkitty, Apr 2, 2011.

  1. stoopkitty macrumors member

    Jan 26, 2010
    I can do this from IB, but not in code. All it does it make it What am I doing wrong?
    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
    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?
  2. Sykte macrumors regular

    Aug 26, 2010

Share This Page