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

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


Even stranger, this only happens on iPhone, not iPad.

If you're setting the font in code and don't want an editable text view, do this:

textView.editable = YES;textView.font = newFont;textView.editable = NO;


In my case, it is matter of 'selectable' property of UITextView.

So I checked 'selectable' property of UITextView in Storyboard Editor to set it YESTo set selectable

and later in viewWillAppear set this property to NO.

textview.text = @"some text";textview.selectable = NO;


The issue was caused by the editable property being false in the Storyboard. I have absolutely no idea why this caused the font to remain unchanged - and only on iOS 6.