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