1

I have a question how to change font weight in UITextView in iOS Mono? For example i have text= "My name Foo.I Like to eat. #eat I love cookie"; i want to change display "#hashtag" to bold

My name Foo.I Like to eat. #hashtag I love cookie

Siti
  • 130
  • 7

1 Answers1

2

You can achive this by using attributed strings. Below iOS6 you have to use CATextLayer.

Follow this great post: Bold & Non-Bold Text In A Single UILabel?

Community
  • 1
  • 1
ihkawiss
  • 986
  • 3
  • 9
  • 25