1. desired effect: When you browse the article, when you slide down, the navigationBar and toolbar are hidden. When you reach the end, move up and the navigationBar and toolbar are displayed again. 2. Idea: first, webview is used to display the article. We all know that webview contains scrollview. This makes it easy. We can use scrollview to implement it. The Code is as follows: copy the Code # pragma mark-UIScrollViewDelegate-(void) scrollViewDidScroll :( UIScrollView *) scrollView {int currentPostion = scrollView. contentOffset. y; if (currentPostion-lastPostion> kSlide & currentPostion> 0) {lastPostion = currentPostion; // reset frame [UIView animateWithDuration: kAnimationTime animations: ^ {CGRect rc = self. navigationController. navigationBar. frame; self. navigationController. navigationBar. frame = CGRectMake (0,-CGRectGetHeight (rc), CGRectGetWidth (rc), CGRectGetHeight (rc); rc = self. toolbar. frame; self. toolbar. frame = CGRectMake (0, [UIScreen mainScreen]. bounds. size. height, CGRectGetWidth (rc), CGRectGetHeight (rc); self. webView. frame = CGRectMake (0, 0, [UIScreen mainScreen]. bounds. size. width, [UIScreen mainScreen]. bounds. size. height) ;}] ;}else if (lastPostion-currentPostion> kSlide & (currentPostion <= scrollView. contentSize. height-scrollView.bounds.size.height-kSlide) {lastPostion = currentPostion; // reset frame [UIView animateWithDuration: kAnimationTime animations: ^ {CGRect rc = self. navigationController. navigationBar. frame; self. navigationController. navigationBar. frame = CGRectMake (0, 0, CGRectGetWidth (rc), CGRectGetHeight (rc); rc = self. toolbar. frame; self. toolbar. frame = CGRectMake (0, [UIScreen mainScreen]. bounds. size. height-CGRectGetHeight (rc), CGRectGetWidth (rc), CGRectGetHeight (rc); self. webView. frame = CGRectMake (0, CGRectGetHeight (self. navigationController. navigationBar. frame), [UIScreen mainScreen]. bounds. size. width, [UIScreen mainScreen]. bounds. size. height-CGRectGetHeight (self. navigationController. navigationBar. frame)-CGRectGetHeight (rc) ;}] ;}}