/// <summary> /// Shows the view controller from xib with animation. /// </summary> /// <param name='xib'> /// The Xib. The view controller must have the same name. /// </param> /// <param name='animation'> /// Animation. /// </param> public static void showViewControllerFromXibWithAnimation(string xib, NativeTransitionAnimation animation = NativeTransitionAnimation.None) { int anim = (int)animation - 1; if (Application.platform == RuntimePlatform.IPhonePlayer) { _showViewControllerFromXibWithAnimation(xib, anim); } else { Debug.LogWarning("Cannot display Storyboard on this platform!"); } }
/// <summary> /// Shows the initial view controller in a storyboard. /// </summary> /// <param name='storyboard'> /// Storyboard. /// </param> /// <param name='animation'> /// Animation to present with. /// </param> public static void showStoryboard(string storyboard, NativeTransitionAnimation animation = NativeTransitionAnimation.None) { int anim = (int)animation - 1; if (Application.platform == RuntimePlatform.IPhonePlayer) { _showStoryboard(storyboard, anim); } else { Debug.LogWarning("Cannot display Storyboard on this platform!"); } }
/// <summary> /// Shows the initial view controller in a storyboard. /// </summary> /// <param name='storyboard'> /// Storyboard. /// </param> /// <param name='animation'> /// Animation to present with. /// </param> public static void showStoryboard( string storyboard, NativeTransitionAnimation animation = NativeTransitionAnimation.None ) { int anim = (int)animation -1; if( Application.platform == RuntimePlatform.IPhonePlayer) { _showStoryboard( storyboard, anim ); } else { Debug.LogWarning("Cannot display Storyboard on this platform!"); } }
/// <summary> /// Shows the view controller from xib with animation. /// </summary> /// <param name='xib'> /// The Xib. The view controller must have the same name. /// </param> /// <param name='animation'> /// Animation. /// </param> public static void showViewControllerFromXibWithAnimation( string xib, NativeTransitionAnimation animation = NativeTransitionAnimation.None ) { int anim = (int)animation -1; if(Application.platform == RuntimePlatform.IPhonePlayer) { _showViewControllerFromXibWithAnimation( xib, anim ); } else { Debug.LogWarning("Cannot display Storyboard on this platform!"); } }