UITextView starts at Bottom or Middle of the text

后端 未结 19 1573
谎友^
谎友^ 2020-12-04 13:09

I\'ll get right to it. I have a UItextView placed in my view that when needs to scroll to see all the text (when a lot of text is present in the textView) the t

19条回答
  •  抹茶落季
    2020-12-04 13:24

    Try this below code -

    if ( [self respondsToSelector:@selector(setAutomaticallyAdjustsScrollViewInsets:)]){
         self.automaticallyAdjustsScrollViewInsets = NO;         
    }
    

    Or you can also set this property by StoryBoard -

    Select ViewController then select attributes inspector now unchecked Adjust Scroll View Insets.

提交回复
热议问题