public static UNViewController Instantiate(this UNStoryboard storyboard, string name) { #if __IOS__ return(storyboard.InstantiateViewController(name) as UNViewController); #endif #if !__IOS__ return(storyboard.InstantiateControllerWithIdentifier(name) as UNViewController); #endif }
public static T Instantiate <T> (this UNStoryboard storyboard, string name) where T : UNViewController { #if __IOS__ return(storyboard.InstantiateViewController(name) as T); #endif #if !__IOS__ return(storyboard.InstantiateControllerWithIdentifier(name) as T); #endif }