iOS 7 UITextView vertical alignment

前端 未结 8 660
不思量自难忘°
不思量自难忘° 2020-11-29 04:21

How is that possible that my editable UITextView (placed inside a straightforward UIViewController inside a UISplitView that acts as delegate for t

相关标签:
8条回答
  • 2020-11-29 05:28

    Inspired by Kiattisak, I've implemented vertical alignment as a category over UITextView so that you can control the vertical alignment of legacy UITextView.

    You can find it as a gist here.

    0 讨论(0)
  • 2020-11-29 05:28

    Check top content inset of textView in -viewDidLoad:

    NSLog(@"NSStringFromUIEdgeInsets(self.itemTextField.contentInset) = %@", NSStringFromUIEdgeInsets(self.itemTextField.contentInset));
    

    Reset it in storyboard if it is not zero

    0 讨论(0)
提交回复
热议问题