Simulator failed to launch with customized font in iPhone app

Discussion in 'iOS Development' started by linkou.bian@gmail.com, Sep 1, 2010.

  1. linkou.bian@gmail.com

    linkou.bian@gmail.com New Member

    Joined:
    Sep 17, 2009
    Messages:
    18
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    I want to apply my customized font in iPhone app. So I did as these steps,

    1. add customized.ttf into Xcode project/Resources
    2. add "Fonts provided by application" in plist with a pair of key/value like this - item 0/customized.ttf
    3. update font of label's text like this - lable.font = [UIFont fontWithName

    Please Register or Log in to view images

    "customized" size:17];

    But, it doesn't work... The simulator failed to launch. Am I wrong with any step? Could some friends help me about using customized font in iPhone app (support 3.x and 4)? Thanks in advance.

    Linkou Bian
    Email/MSN: linkou.bian@gmail.com
  2. lauNchD

    lauNchD Well-Known Member

    Joined:
    Jan 27, 2008
    Messages:
    1,844
    Likes Received:
    261
    Device:
    iPhone 5 (Black)
    The UIAppFonts Info.plist key is only available starting at iOS 3.2.
  3. linkou.bian@gmail.com

    linkou.bian@gmail.com New Member

    Joined:
    Sep 17, 2009
    Messages:
    18
    Likes Received:
    0
    Device:
    iPhone 4 (Black)
    Run with Simulator - 4.0, but it still failed.

    I'm using FontLabel for a temp solution now. But I need import more than ten files from others in my tiny project. Appreciated if someone can solve it with just pieces of code.

Share This Page