Hiding a UINavigationController's UIToolbar during viewWillDisappear:

后端 未结 11 1823

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:44

    This is just a wild stab in the dark but maybe you should let the runloop run once after hiding the toolbar:

    [viewController setToolbarHidden:YES animated:YES];
    [[NSRunLoop currentRunLoop] runUntilDate:[NSDate dateWithTimeIntervalSinceNow:0.0]];
    

提交回复
热议问题