How to set custom font?

Discussion in 'iOS Programming' started by Sergio10, Jun 19, 2009.

  1. Sergio10 macrumors regular

    Joined:
    Oct 3, 2007
    #1
    Hi,

    I added my custom font (myfont.ttf) to the project and want to set it for a UILabel control:
    PHP:
    [label setFont: [UIFont fontWithName: @"myfont" size30]];
    And have a crash. What I'm doing wrong? Could you help me solve the problem?

    Thanks
     
  2. jnic macrumors 6502a

    Joined:
    Oct 24, 2008
    Location:
    Cambridge

Share This Page