在某种场合下, 我想让导航条和TabBar隐藏起来,只显示当前的tableView,但希望tableView上的headVIew也隐藏起来,下面是相关代码:
if(_headView)
_headView.hidden = YES; //
[UIView animateWithDuration:0.5 animations:^{
scrollView.frame = rect;
_vc.navigationController.navigationBar.top -= navigationBarHeight;
tabView.top = SCREEN_HEIGHT;
} completion:^(BOOL finished) {
}];
但有时当block用了秒执行完后, _headView再次显示出来。 请高手帮解释一下。
谢谢。