Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Weird storyboard push segue when updating app to iOS 7.

Currently I am updating my app for iOS 7. When I build and run the app it works but the layout needs some serious tweaking, that is not the problem.

When I navigate to another view in the application the screen gets pushed for about 50% and disappears then. The attached image describes the problem:

enter image description here

The application uses a storyboard, and the storyboard segue is just a simple "push" segue within a navigation controller.

like image 255
Leon Boon Avatar asked Sep 16 '13 08:09

Leon Boon


2 Answers

This is what a push segue looks like under iOS7. The incoming view controller actually floats in over the top of the previous one, which only moves a small distance out of the way. Look at the transitions in the settings app, for example, and you will see what I mean.

The problem you have is that the incoming view appears to have a clear background colour, so you can still see the content underneath. I think the default background colour for some views has changed for iOS 7 as well - try setting a background colour and you should see a much better transition.

like image 105
jrturton Avatar answered Nov 15 '22 17:11

jrturton


Using the animation transition mechanism in iOS 7 you can specify the transition in both directions.

Set the segue to Push, then see code below which implements the old style iOS 6 push transition:

https://github.com/Dzamir/OldStyleNavigationControllerAnimatedTransition

like image 33
Matt Avatar answered Nov 15 '22 16:11

Matt