iOS 7 UITextView vertical alignment

前端 未结 8 694
不思量自难忘°
不思量自难忘° 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:27

    I got through the same kind of issue.

    Solved it by disabling the automatic scrollView insets adjustement :

    if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")){
        self.automaticallyAdjustsScrollViewInsets = NO; // Avoid the top UITextView space, iOS7 (~bug?)
    }
    

提交回复
热议问题