【发布时间】:2014-01-29 22:01:56
【问题描述】:
我试图了解 iOS 从何处获取 App Switcher 的图像以及何时获取。我需要更改哪些内容才能控制 App Switcher 上显示的内容?
现在,我可以在 didFinishLaunchingWithOptions 的第一行设置断点,我的启动屏幕是可见的,但 App Switcher 只显示一个空白的白色屏幕,只有绿色的电池矩形。应用切换器稍后似乎也不会在我的应用中拾取任何图像。
我在 didFinishLaunchingWithOptions 中这样做:
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
稍后在被调用的方法中(在设置适当的视图之后):
MMDrawerController * drawerController = [[MMDrawerController alloc]
initWithCenterViewController:centerView
leftDrawerViewController:leftDrawer];
drawerController.maximumLeftDrawerWidth = LeftDrawerWidth;
drawerController.closeDrawerGestureModeMask = MMCloseDrawerGestureModeTapCenterView;
[imageView addSubview:[self staticToolbar]];
[imageView addSubview:[self dsaToolbar]];
self.window.rootViewController = drawerController;
[self.window makeKeyAndVisible];
[[UIApplication sharedApplication] setStatusBarHidden:NO];
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
【问题讨论】:
标签: ios objective-c