UITextView - setting font not working with iOS 6 on XCode 5

后端 未结 12 1746
旧时难觅i
旧时难觅i 2020-11-27 16:14

I\'m using storyboards for my UI. I was previously using XCode 4.6 and released on iOS 6. I have since updated to iOS 7 using XCode 5 and updated the Storyboard to work nice

12条回答
  •  感情败类
    2020-11-27 16:19

    As mentioned by others:

    textView.font = UIFont.systemFont(ofSize: 16)
    textView.isEditable = false
    

    p.s. no need to first set isEditable as true since it's true by default: a little shorter, a little nicer

提交回复
热议问题