Currently I'm using the below code to force orientation on a view controller to landscape.
NSNumber *value = [NSNumber numberWithInt:UIInterfaceOrientationLandscapeRight];
[[UIDevice currentDevice] setValue:value forKey:@"orientation"];
[UIViewController attemptRotationToDeviceOrientation];
This works fine in IOS 7.1 target simulator and on my IOS 7.1 device.
When attempting to use this for IOS 8.1, the simulator will physically rotate sideways but the view will stay portrait.
Is there any fix, or other way of rotating for this.