Wednesday, 20. March 2013 |
How to force an iPhone to rotate to a certain orientation. The Problem iPhone and iPad apps can support portrait or landscape orientation or both. Sometimes a single or a very few of the views needs to be displayed in portrait or landscape only or in that very orientation that the remaining app does not support. iOS or the cocoa framework respectively provide methods to define individually for each view, which orientations are supported. However, unless any limitations apply to all of the app and are therefore defined on project or target level respectively, it is always the user that has to perform the rotation. The app may decide whether it supports a certain orientation but it cannot force the system to actually rotate. This tutorial shows how this insufficiency can be overcome. The example given is for an iPhone app that presents all but one of their view controllers in portrait mode. For good design and usability reasons one of the view controllers works in landscape only. This is proven on iPhone iOS 6 so far. |
Letzte Aktualisierung ( Tuesday, 20. January 2015 )
|
weiter …
|