Hi Dave, setRootViewController does not exist in pre-4.0 iOS versions. Please see the following solution: http://stackoverflow.com/questions/4371304/uiwindow-setrootviewcontroller-e quivalent-in-pre-4-0 Note: You will need to detect the OS and then switch command as appropriate. We do this in our app with no problems.
Regards, Chris -- Christian Moores VP User Experience, Psonar On 21/11/2011 15:38, "Dave Richards" <[email protected]> wrote: >My iPhone app was working fine on iOS 5.0 but crashed on an older phone >with >iOS 3.1.3 and also crashes on another phone running iOS 3.1.2. Changing >the >deployment target back to iOS 5.0 for the same app it was also crashing. > >To keep things simple I created a single screen test app with only a title >bar. Deployed this to the iPhone running iOS 3.1.3 and it crashed. This >app >however did run on the iPhone with iOS 5.0. > >I ran this smple app in Debug|iPhone mode and got the following exception: > >Objective-C exception thrown. Name: NSInvalidArgumentException Reason: >*** _ >[UIWindow setRootViewController:] unrecognized selector sent to instance >0x752230 > >Stack Trace: > >at MonoTouch.UIKit.UIWindow.set_RootViewController >(MonoTouch.UIKit.UIViewController value) [0x00000] in <filename unknown>:0 > > >-- >View this message in context: >http://monotouch.2284126.n4.nabble.com/App-crashing-on-iOS-3-1-2-and-iOS-3 >-1-3-tp4091918p4091918.html >Sent from the MonoTouch mailing list archive at Nabble.com. >_______________________________________________ >MonoTouch mailing list >[email protected] >http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
