//获得程序代理,以便对设备StatusBar进行控制
AppDelegate* _delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
//在主窗口加载视图
[_delegate.window addSubview:self];
//获得程序代理,以便对设备StatusBar进行控制
AppDelegate* _delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
//在主窗口加载视图
[_delegate.window addSubview:self];