You can register for the notification UIDeviceOrientationDidChangeNotification (from UIDevice. H), and then when you care about orientation changes call this method: UIDevice currentDevice beginGeneratingDeviceOrientationNotifications When you no longer care about orientation changes, call this method: UIDevice currentDevice endGeneratingDeviceOrientationNotifications The notification will be sent when applicable, and you can check UIDevice currentDevice. Orientation to find out what the current orientation is.
You can register for the notification UIDeviceOrientationDidChangeNotification (from UIDevice. H), and then when you care about orientation changes call this method: UIDevice currentDevice beginGeneratingDeviceOrientationNotifications; When you no longer care about orientation changes, call this method: UIDevice currentDevice endGeneratingDeviceOrientationNotifications; The notification will be sent when applicable, and you can check UIDevice currentDevice. Orientation to find out what the current orientation is.
Thanks - this is exactly what I was after! – Nick Cartwright Jun 15 '09 at 16:54 Bad side effect is that the device will not go to sleep anymore. – drvdijk Aug 6 '09 at 14:59.
On a side note shouldAutoRotateToInterfaceOrientation used to be called on the time for rotation in 2. X, but in 3.0 it's much less consistent. The notification mentioned in the other post is the way to go for reliable indication of rotation.
Thanks Kendall for the tip! N – Nick Cartwright Jun 16 '09 at 9:39.
You're returning YES from shouldAutorotateToInterfaceOrientation:, which I suspect you didn't mean to do. That's the only method you need to implement to prevent the device from rotating. As for getting the current orientation of the device, you can use UIDevice currentDevice orientation.
There - thanks for your suggestion! UIDevice currentDevice orientation will get the current orientation - but I need to detect when this happens without the phone auto-rotating. If I return NO from shouldAutorotateToInterfaceOrientation, none of the delegate functions get called so I loose the ability to detect when rotation happens.
Does anyone else have any ideas? Cheers, Nick. – Nick Cartwright Jun 15 '09 at 15:54.
May prevent the device from rotation (overriding all rotate methods of my UIViewController and not calling the superclass) but I fear it's not the UIViewController that actually performs the rotation. My UIViewController is in a UINavigationController. Anyone have any ideas?
Look on Ebay and see if there is anything like this selling and you can get an idea.
Here you will be able to view select teachings from the Believer's Walk of Faith broadcast. If you would like to view more teachings please Partner With Us , in doing so you will be given access to our Partner's Cafe which is exclusively for partners, and comes with an extended view of broadcast teachings and many more benefits. With today's busy schedules, it may be difficult to find time to watch the National Believer's Walk of Faith broadcasts.
That's why we've created the Believer's Walk of Faith Broadcast Online–so that you can take advantage of these teachings by watching or listening when it's convenient for you. These exciting programs are available for your viewing, 24 hours a day, through the web casting section of our web site.
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.