How to display bold and regular text in UILabel

Discussion in 'iOS Programming' started by Narendar Singh, Feb 12, 2013.

  1. Narendar Singh macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #1
    Hi,

    I have to display text in following format:

    My name is Narendar and I am not a machine.

    How can I display this text in UILabel?
     
  2. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
  3. Narendar Singh thread starter macrumors member

    Narendar Singh

    Joined:
    Jun 22, 2012
    Location:
    INDIA
    #3
    OK Thanks...
     
  4. xStep macrumors 68000

    Joined:
    Jan 28, 2003
    Location:
    Less lost in L.A.
    #4
    I think that is limited to iOS 6+. UILabel had the attributedText property added in iOS 6.
     
  5. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #5
    You can still use them using CoreText for < 6.0.
     

Share This Page