UITableViewCell中cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator方框问题
Xcode11 新建项目问题
- xcode11 新建项目入口不是
AppDelegate 而是 SceneDelegate , 在新建项目时会多了 SceneDelegate.h/.m 文件,如果我们要自定义根视图时需要在 SceneDelegate.m 编写代码
- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
self.window = [[UIWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
self.window.frame = [UIScreen mainScreen].bounds;
self.window.rootViewController = MainViewController.new;
[self.window makeKeyAndVisible];
}