ViewDidUnload and ShouldAutorotateToInterfaceOrientation for MonoTouch

Now that viewDidUnloadboth shouldAutorotateToInterfaceOrientationare deprecated from iOS 6, what should we replace them with MonoTouch?

+5
source share
2 answers

viewDidUnload

Both viewDidUnloadand are viewWillUnloadno longer called by iOS6. The Xamarin release notes for MonoTouch 6 describe this, as well as the Apple documentation .

shouldAutorotateToInterfaceOrientation

Two new methods (in iOS6 available in MonoTouch) can be overridden to get the same result. See the Apple documentation for the selector for more details shouldAutorotateToInterfaceOrientation.

, shouldAutorotateToInterfaceOrientation ( , , iOS).

+6

ViewDidUnload() . , ViewWillDisappear() ViewWillAppear(). WWDC 2012 236 ( ) 200 ( Cocoa Touch).

ShouldAutoRotateToInterfaceOrientation() SupportedInterfaceOrientations(). . : http://dhilipsiva.com/2012/07/25/ios-6-ui-interface-orientation-shouldautorotatetointerfaceorientation-not-working.html

+7

All Articles