iPhone OS: Tap status bar to scroll to top doesn't work after remove/add back

后端 未结 9 1056
执笔经年
执笔经年 2020-12-05 12:30

Using this method to hide the status bar:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:YES];

When setting \"hidden\"

9条回答
  •  温柔的废话
    2020-12-05 13:13

    You can use the following code to have the UIWebView ignore scrollToTop without the extra UIScrollView:

    ((UIScrollView *)[[webView valueForKey:@"_internal"] valueForKey:@"scroller"]).scrollsToTop = NO;
    

提交回复
热议问题