Lets say I want to make only the text "Software" bold. Is there a way to achieve this without a custom alertview?
Asked
Active
Viewed 160 times
0
-
1what is vsn? this is an ios app, if that is what you are asking – Esqarrouth Jul 07 '14 at 16:49
-
written in ios 7? in earlier versions it is possible but don't know how to do with ios 7 – Rachel Gallen Jul 07 '14 at 16:53
-
Check this - http://stackoverflow.com/questions/18729220/uialertview-addsubview-in-ios7 – rishi Jul 07 '14 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 07 '14 at 17:20
-
I don't really. But a simpler version of code that is understandable by all is always preffered – Esqarrouth Jul 08 '14 at 16:19
1 Answers
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

Rachel Gallen
- 27,943
- 21
- 72
- 81
-
apple docs https://developer.apple.com/library/ios/documentation/StringsTextFonts/Conceptual/TextAndWebiPhoneOS/CustomTextProcessing/CustomTextProcessing.html#//apple_ref/doc/uid/TP40009542-CH4-SW65 – Rachel Gallen Jul 07 '14 at 17:10
-
-
@matt he can set Software to be a subheading label. read the apple docs – Rachel Gallen Jul 07 '14 at 17:27