0

Lets say I want to make only the text "Software" bold. Is there a way to achieve this without a custom alertview?

enter image description here

5
  • 1
    what is vsn? this is an ios app, if that is what you are asking
    – Esqarrouth
    Jul 7, 2014 at 16:49
  • written in ios 7? in earlier versions it is possible but don't know how to do with ios 7 Jul 7, 2014 at 16:53
  • Check this - stackoverflow.com/questions/18729220/…
    – rishi
    Jul 7, 2014 at 16:59
  • What do you @Esq have against a custom alert view? It's not hard to do, esp. in iOS 7 and later.
    – matt
    Jul 7, 2014 at 17:20
  • I don't really. But a simpler version of code that is understandable by all is always preffered
    – Esqarrouth
    Jul 8, 2014 at 16:19

1 Answer 1

0
self.subHeadingLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleSubheadline];

Check out dynamic text in ios7 . it has six different font styles. There is a good article here

3

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.