Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public UIPopoverController(UIViewController controller)
 {
     Handle = ObjC.MessageSendIntPtr(Handle, Selector.GetHandle("initWithContentViewController:"), controller.Handle);
     ObjC.MessageSend(Handle, Selector.GetHandle("setDelegate:"), Handle);
 }
Ejemplo n.º 3
0
 public void SetContentViewController(UIViewController viewController, bool animated)
 {
     ObjC.MessageSend(Handle, Selector.GetHandle("setContentViewController:animated:"), viewController.Handle, animated);
 }
Ejemplo n.º 4
0
 public void PresentViewController(UIViewController controller, bool animated = true)
 {
     ObjC.MessageSend(Handle, Selector.GetHandle("presentViewController:animated:completion:"), controller.Handle, animated, IntPtr.Zero);
 }