Xcode 6 interface builder by default has new checkbox "use size classes". It makes views adaptive.
When I try to make segue between 2 views in my storyboard I have new options:
instead old:
Now we have "show" and "present modally" instead of "push" and "modal". The old options are marked as deprecated. I've chosen "show" option, because in segue settings it called "show (e.g. push)
But it doesn't make push. Segue animation looks like slide from the bottom (modal) and navigation bar disappears.
Question is: How can I make "show" work like push? Is it possible or should I use "push (deprecated)" instead? Where can I find any information about new types of segue? The only thing that I've found in iOS8 developer library is Storyboards Help You Design Your User Interface but there is no information about "show" segue.
UPDATE
I tried to create new project and "show" is really works like "push".
I think the issue in my project can be because I reuse navigation controller with code like this, but I don't know how to fix it.
if ( [segue isKindOfClass: [SWRevealViewControllerSegue class]] ) {
SWRevealViewControllerSegue *swSegue = (SWRevealViewControllerSegue*) segue;
swSegue.performBlock = ^(SWRevealViewControllerSegue* rvc_segue, UIViewController* svc, UIViewController* dvc) {
UINavigationController* navController = (UINavigationController*)self.revealViewController.frontViewController;
[navController setViewControllers: @[dvc] animated: NO ];
[self.revealViewController setFrontViewPosition: FrontViewPositionLeft animated: YES];
};
}
After that I try to push NewViewController after MainViewController
UPDATE 2:
I seems to be only iOS 7, iOS 7.1 issue.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…