[MonoTouch] Failing to report Orientation Changes
gordon pagan
gordon at gpagan.co.uk
Thu Dec 8 04:54:36 EST 2011
I had my code successfully reporting changes to the orientation of the screen
Landscape Left/Right Portrait etc but now fails to do so. The fragment of
code I used to initiate the orientation event was:-
NSNotificationCenter.DefaultCenter.AddObserver(UIDevice.OrientationDidChangeNotification,delegate
{
string s= UIDevice.CurrentDevice.Orientation.ToString();
global.Change_OrientationType(s);
}
I remove the observer when I terminate the Application as it is used
throughout the whole life time of the App. I would be most grateful for any
assistance on this issue
--
View this message in context: http://monotouch.2284126.n4.nabble.com/Failing-to-report-Orientation-Changes-tp4172113p4172113.html
Sent from the MonoTouch mailing list archive at Nabble.com.
More information about the MonoTouch
mailing list