效果图如下
项目结构截图
阅读入口,在代理方法中进行判断即可
- (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];
//选择根控制器 (根据是否有新版)
[DifferChooseRoot chooseRootControllerWithWindow:self.window];
[self.window makeKeyAndVisible];
return YES;
}