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

后端 未结 12 1765
旧时难觅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:40

    This issue only happens when setting Selectable property to FALSE in the Interface Builder.

    In case you are required to have the Editable and Selectable properties set to FALSE do it from the CODE and not in the Interface Builder.

    Summing up, make Editable and Selectable properties = YES in the Interface Builder and then add the following code in case you need the properties to be FALSE:

    _textView.editable   = NO;
    _textView.selectable = NO;
    

    Hope this helps,

提交回复
热议问题