Пример #1
0
 //TODO: need to add the callback instead of using IntPtr.Zero
 public void PresentViewController(UIViewController controller, bool animated = true)
 {
     ObjC.MessageSend(Handle, Selector.GetHandle("presentViewController:animated:completion:"), controller.Handle, animated, IntPtr.Zero);
 }
Пример #2
0
 public UIPopoverController(UIViewController controller)
 {
     Handle = ObjC.MessageSendIntPtr(Handle, Selector.GetHandle("initWithContentViewController:"), controller.Handle);
     ObjC.MessageSend(Handle, Selector.GetHandle("setDelegate:"), Handle);
 }
Пример #3
0
 public void SetContentViewController(UIViewController viewController, bool animated)
 {
     ObjC.MessageSend(Handle, Selector.GetHandle("setContentViewController:animated:"), viewController.Handle, animated);
 }
Пример #4
0
 public void PresentViewController(UIViewController controller, bool animated = true)
 {
     ObjC.MessageSend(Handle, Selector.GetHandle("presentViewController:animated:completion:"), controller.Handle, animated, IntPtr.Zero);
 }