Question

My app uses a landscape only view and requires the user to answer a series of questions using a UISlider to select their answer before clicking "Next" to move to the next question.

The user can't go back to previous questions so only has one "direction" of travel. Once the final question is answered the app will return them to the Main Menu view.

I've had some trouble with the slide transition sliding the next view in but it thinks it is in portrait mode. I have seen a solution somewhere that NavController fixes this but is that necessary for my app?

The user doesn't really navigate as they can only go to the next screen, never to the previous.

If anyone has any other opinions on how to implement this it'd be much appreciated.

Thanks!

Oliver

Was it helpful?

Solution

I'm not sure if I know exactly what you want... but from what I understand I would simply use a navigation controller to handle all of the transitions. You can hide the back button so the user can't go back and all of the view animation comes with it! When the user selects an answer, just push the next question on the navigation controller's stack. Once you get to the end of the list, just pop off all the view controllers to get back to the start (main menu).

Is this kind of what you wanted? If you need help with some code snippets I can add some.

OTHER TIPS

I think you will have to transform the transition so that it slides in on the right axis. By default it will slide right-left in portrait. The transition animation doesn't actually know the orientation of the device or the view.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top