点击导航栏tableView回到顶部

  UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(returnTop)];
     self.navigationItem.titleView.userInteractionEnabled = YES;
    [self.navigationController.navigationBar addGestureRecognizer:tap];
 
#pragma mark - 回到顶部
- (void)returnTop {
     [self.tableView setContentOffset:CGPointMake(0, - 44) animated:YES];
}
原文地址:https://www.cnblogs.com/tian-sun/p/5019949.html