iOS巔峯之解決隱藏tabbar後原位置無法響應點擊事件的問題

- (void)viewWillDisappear:(BOOL)animated

{

    [super viewWillDisappear:animated];

    NSLog(@"--%f", kScreenHeight);

 // 返回後還要恢復   self.tabBarController.tabBar.frame = CGRectMake(0, kScreenHeight - 49, kScreenWidth, 49);

    

}




- (void)viewWillAppear:(BOOL)animated

{

    [super viewWillAppear:animated];

    // 寫這個就可以解決

    self.tabBarController.tabBar.frame = CGRectZero;

    

}



發佈了64 篇原創文章 · 獲贊 10 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章