void Send() { if (viewController == null) { viewController = gameObject.GetComponent <UIViewController>(); } if (navigationController != null && viewController != null) { if (controllerParam != "") { viewController.controllerParameters = UINavigationController.DecodeControllerParams(controllerParam); } navigationController.pushController(viewController, (c) => { if (callbackTarget != null && string.IsNullOrEmpty(appearMethod) == false) { callbackTarget.SendMessage(appearMethod, c, SendMessageOptions.DontRequireReceiver); } }, (c) => { if (callbackTarget != null && string.IsNullOrEmpty(appearedMethod) == false) { callbackTarget.SendMessage(appearedMethod, c, SendMessageOptions.DontRequireReceiver); } }); } }
public static void PushController(UIViewController controller) { if (navigationController != null) { navigationController.pushController(controller, null, null); } }