Programming for sex workers all you need to know Sex Worker 69 – Escort directory
Category: Orientation
Designing Separate Views For Landscape And Portrait
This guide is based on the excellent guide provided by Geoff Palin at A Series of Tubes. Create View Controller Files Create your View Controller as normal so you end up with a ‘.h’, ‘.m’ and ‘.xib’ file names something like #ViewController_iPad.#. In #ViewController_iPad.h @interface #ViewController_iPad : UIViewController { IBOutlet UIView *mainPortraitView; IBOutlet UIView *mainLandscapeView; […]
Rotation
See also 'Notifications' Default Rotation In the applicaitons Info.plist add the row: Initial Interface Orientation (UIInterfaceOrientation) Enabling Auto Rotation For A View Add to #ViewController.m //********** SHOULD AUTOROTATE ********** – (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation { //Set which orientations we allow if ( (toInterfaceOrientation == UIInterfaceOrientationPortrait) || (toInterfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) || (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight) ) […]