예제 #1
0
        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
        }
예제 #2
0
        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
        }