Iphone - On orientation change of iphone , rotate only one control and not all others?

I had to do something very similar recently. What I did was disable auto rotation and then used the device notifications like this.

I had to do something very similar recently. What I did was disable auto rotation and then used the device notifications like this: UIDevice currentDevice beginGeneratingDeviceOrientationNotifications; NSNotificationCenter defaultCenter addObserver:self selector:@selector(didRotate:) name:UIDeviceOrientationDidChangeNotification object:nil; - (void)didRotate:(NSNotification *)notification { UIDeviceOrientation orientation = UIDevice currentDevice orientation; switch (orientation) { case UIDeviceOrientationUnknown: case UIDeviceOrientationFaceUp: case UIDeviceOrientationFaceDown: return; break; } // Do something } You will need to handle some situations like quick rotations etc. Let me know if you need more info.

Thanks for the reply. But needs little clarification. Do I have to create different view class that inherits from ImageView and handle it or I can handle "didRotate" in viewController itself?

– Satyam svv Jun 21 '10 at 6:09 My suggestion would be to handle this in the view controller. Perhaps setup the observer in your viewDidLoad. The notifications will be sent immediately for any orientation changes.So I save the orientation change and set the animation on it's way.

If there is another orientation change during the animation I start the animation all over again until there are no changes. – v01d Jun 21 '10 at 10:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions