On 31.10.2011 20:25, Andreas Ploetzeneder wrote: > i get > MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. > Name: NSInvalidArgumentException Reason: -[S3G.MySplitViewController > presentViewController:animated:completion:]: unrecognized selector sent to > instance 0x72d3300
This is an iOS 5 API. You want PresentModalViewController. Robert > > 2011/10/31 Robert Jordan<[email protected]> > >> On 31.10.2011 19:56, Andreas Ploetzeneder wrote: >>> null is not allowed,i get a crash if i make third argument null.... but >> for >>> what do i need it ? >> >> From the docs I've posted below: "The completion handler is called >> after the viewDidAppear: method is called on the presented view >> controller." >> >>> so third argument can be "delegate{};"? >> >> Yes. >> >> splitviewcontroller.PresentViewController( >> someController, >> true, >> delegate {} >> ); >> >>> >>> >>> >>> 2011/10/31 Robert Jordan<[email protected]> >>> >>>> On 31.10.2011 18:48, Andreas Ploetzeneder wrote: >>>>> Hi, >>>>> i want to call splitviewcontroller.PresentViewController , >>>>> splitviewcontroller is an UISplitviewcontroller >>>>> >>>>> what is the third argument, i have to call? can u show me an example? >>>> >>>> It's a simple delegate, so you could pass `delegate {}' as the 3rd >>>> parameter, if null isn't allowed. The docs say otherwise: >>>> >>>> >>>> >> http://developer.apple.com/library/ios/#DOCUMENTATION/UIKit/Reference/UIViewController_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006926-CH3-SW75 >>>> >>>> So please file a bug if passing delegate {} is fixing your issue. >>>> >>>> Robert >>>> >>>> >>>> _______________________________________________ >>>> MonoTouch mailing list >>>> [email protected] >>>> http://lists.ximian.com/mailman/listinfo/monotouch >>>> >>> >>> >>> >> >> _______________________________________________ >> MonoTouch mailing list >> [email protected] >> http://lists.ximian.com/mailman/listinfo/monotouch >> > > > _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
