Accessing Basic Device Information
UIDevice *device = [UIDevice currentDevice];
NSLog(@"System name: %@", device.systemName);
NSLog(@"Model: %@", device.model);
NSLog(@"Name: %@", device.name);
Working with Basic Orientation
UIDeviceOrientationUnknown—The orientation is currently unknown.
UIDeviceOrientationPortrait—The home button is down.
UIDeviceOrientationPortraitUpsideDown—The home button is up.
UIDeviceOrientationLandscapeLeft—The home button is to the right.
UIDeviceOrientationLandscapeRight—The home button is to the left.
UIDeviceOrientationFaceUp—The screen is face up.
UIDeviceOrientationFaceDown—The screen is face down.
No comments:
Post a Comment