#import "AppDelegate.h"
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//系统窗口初始化
self.window = [[UIWindowalloc]initWithFrame:[UIScreenmainScreen].bounds];
UIViewController *controller=[[UIViewControlleralloc]init];
[self.window setRootViewController:controller];
[self.window setBackgroundColor:[UIColorwhiteColor]];//更改背景颜色 ,如果没有改可能显示为黑色并非错误
//设置窗体可见
[self.windowmakeKeyAndVisible];
returnYES;
}