[MonoTouch] Third argument Presentviewcontroller

Robert Jordan robertj at gmx.net
Mon Oct 31 15:12:02 EDT 2011


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<robertj at gmx.net>
>
>> 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
>> MonoTouch at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monotouch
>>
>
>
>



More information about the MonoTouch mailing list