iphone - Change view layout with orientation -
I am working on an application where I want to change a lot when the scene is rotated. I know that it is possible to change this orientation in the interface builder and set the layout, although when I rotate it in the picture, the scene will be similar to the scenario, there is a way to set up two ideas independently, maybe two niches to use?
Cheers, JP
I do not know that you can do this in IB But I know that you can do it in code: You must inspect UIDeviceOrientationDidChangeNotification Notification:
(in viewDidLoad ...)
[[NSNotificationCenter defaultCenter ] AddObserver: Self Selector: @selector (updateViewOnRotate :) Name: UIDewisOrderationDead Change Notification Object: Zero];
....
- (zero) UpdateviewNotate: (NSNitification * Notification) {// Update Update}
Comments
Post a Comment