UIResponder* nextResponder = [self.view.superview.superview nextResponder]; if ([nextResponder isKindOfClass:[UIViewController class]]) { uic = (UIViewController*)nextResponder; uic.hidesBottomBarWhenPushed = YES; [uic.navigationController pushViewController:detailVC animated:YES]; }