how to rotate to current of Orientation?
- by RAGOpoR
according to my code when my device are use in Landscape
when i pushViewController it will
automatic show in UIDeviceOrientationPortrait.
i need to rotate my device to Portrait and then rotate to Landscape,
then it will present in Landscape mode.
how can i rotate to current of Orientation with out use of private API(setOrientation)?
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIDeviceOrientationPortrait) ||
(interfaceOrientation == UIInterfaceOrientationLandscapeRight));
}