Hiding a UINavigationController's UIToolbar during viewWillDisappear:

后端 未结 11 1820

I\'ve got an iPhone application with a UITableView menu. When a row in the table is selected, the appropriate view controller is pushed onto the application\'s

11条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-03 21:49

    I too have experienced this problem. In my case, the only way I found to successfully hide the toolbar without showing the background of the window is to call [self.navigationController setToolbarHidden:YES animated:animated] in your view controller’s -viewDidAppear: method.

提交回复
热议问题