美文网首页
ios 初始界面自定义rootviewcontroller

ios 初始界面自定义rootviewcontroller

作者: frola_ | 来源:发表于2017-09-11 22:37 被阅读0次
    #import "AppDelegate.h"
    #import "rootViewController.h"
    @interface AppDelegate ()
    
    @end
    
    @implementation AppDelegate
    
    
    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        // Override point for customization after application launch.
        
        self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
        self.window.backgroundColor = [UIColor whiteColor];
        
        rootViewController *root = [[rootViewController alloc]init];
        self.window.rootViewController = root;
        
        [self.window makeKeyWindow];
        
        return YES;
    }
    
    rootviewcontroller.png

    相关文章

      网友评论

          本文标题:ios 初始界面自定义rootviewcontroller

          本文链接:https://www.haomeiwen.com/subject/dakqsxtx.html