Ask you, how to get a view when the device is used in a longitudinal discharge, but the display interface, but it is always horizontal screen?
For example, a reader, select books in the longitudinal view is displayed, but when you open the book to read view becomes read horizontally and transverse direction with the device reading will not change
This effect is how to do it? Thank you!
Reply:
In that require horizontal display controller
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation in to deal with.
Reply:
Thank you, I found another solution method, add the following code in viewDIdLoad
CGAffineTransform transform = CGAffineTransformIdentity;
transform = CGAffineTransformRotate (transform, M_PI / 2);
self.view.transform = transform;
This can be a horizontal screen
No comments:
Post a Comment