UITextView starts at Bottom or Middle of the text

后端 未结 19 1565
谎友^
谎友^ 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:26

    Update your UINavigationBar's translucent property to NO:

    self.navigationController.navigationBar.translucent = NO;
    

    This will fix the view from being framed underneath the navigation bar and status bar.

    If you have to show and hide the navigation bar, then use below code in your viewDidLoad

     if ([self respondsToSelector:@selector(edgesForExtendedLayout)])
        self.edgesForExtendedLayout = UIRectEdgeNone;   // iOS 7 specific
    

    Hope this helps.

提交回复
热议问题