Pranoy C Pranoy C - 11 months ago 259
iOS Question

iOS 10 Beta makes navigation bar buttons and title disappear on pushViewController

EDIT: Please watch the video of my issue here:

I have had an app live in app store which works perfectly fine on iOS 9.

However on iOS 10 (tested on device iPhone 6s with latest beta), when the cell on the master view controller is selected and the detail view is "pushed", my navigation bar's title and navigation bar buttons disappear.

Only the back button is visible.

Even if I pop back to the master by clicking back button or swiping back, they don't come back. After popping back, even the "master's" title and bar buttons are gone. I have no clue how to troubleshoot this as there are no errors.

IN my code, I am not hiding the navigation bar anywhere nor doing anything fancy with the navigation controller.

Screenshots from view hierarchy insprector:
enter image description here

Notice how the title and my right bar buttons on behind a few other views. the back button is at the very front. This shows that the buttons and title are not hidden, they are being covered by 3 extra views: UIVisualEffectView, _UIVisualEffectBackdropView and _UIVIsualEffectFilterView

Also in the video, you will notice that if i do a half swipe back, then cancel the swipe, the bar buttons come back. But the title doesn't.

enter image description here

enter image description here

After returning to the master, notice the master's nav bar stuff is overlaid with 2 other private class views:
enter image description here

I push to detail programmatically:
Relevant code:

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];

PlaylistDetailViewController *pdvc = (PlaylistDetailViewController*)[self.storyboard instantiateViewControllerWithIdentifier:@"PlaylistDetailViewController"];
[self.navigationController pushViewController:pdvc animated:YES];

Answer Source

actually, i just figured out a minute ago. I am using a custom GKFadeNavigationController from AFter removing it, that fixes the issue.