SceneDelegate.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. //
  2. // SceneDelegate.m
  3. // 唔即云相册
  4. //
  5. // Created by 余衡武 on 2021/12/8.
  6. //
  7. #import "SceneDelegate.h"
  8. #import "HWWebViewController.h"
  9. #import "CalculatorViewController.h"
  10. #import "SetUsePWDViewController.h"
  11. #import "GuideViewController.h"
  12. #import "BaseNavigationController.h"
  13. #import "MySetViewController.h"
  14. #import "SafeForKey.h"
  15. #import "TipsQRCodeViewController.h"
  16. #import "SetPWDFirstViewController.h"
  17. #import "ConnectTestViewController.h"
  18. #import "PlayerViewController.h"
  19. #import "connectDeviceManager.h"
  20. #import "inputPWDViewController.h"
  21. #import "customLaunchView.h"
  22. #import "RSATool.h"
  23. @interface SceneDelegate ()<SetUsePWDViewControllerDelegate,GuideViewControllerDelegate>
  24. @property(nonatomic, strong) CalculatorViewController *calculatorVC;
  25. @property(nonatomic, strong) HWWebViewController *webVC;
  26. @property(nonatomic, strong) inputPWDViewController *inputVC;
  27. @property(nonatomic, strong) NSTimer *checkSNDataTimer;//
  28. @property(nonatomic, strong) customLaunchView *customLaunchV;//
  29. @property(nonatomic, strong) PlayerViewController *curPlayerVC;
  30. @property(nonatomic, assign) bool isQRCodeType;//第一次 扫码进来的
  31. @property (nonatomic, assign) BOOL isLoginAgainType;// 单点登录 点重新登录进来的
  32. @end
  33. @implementation SceneDelegate
  34. - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions API_AVAILABLE(ios(13.0)){
  35. if (scene) {
  36. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(guideOk:) name:GuideOkNotification object:nil];
  37. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(showLockViewFun:) name:lockBypwdNotification object:nil];
  38. UIWindowScene *windowScene = (UIWindowScene *)scene;
  39. self.window = [[UIWindow alloc] initWithWindowScene:windowScene];
  40. self.window.frame = CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height);
  41. // 初始化数据库
  42. [self initBrowserWindow];
  43. // 加载主页面
  44. [self enterMainVCFromScene];
  45. //
  46. [self getNetWorkPopViewFun];
  47. [self.window makeKeyAndVisible];
  48. }
  49. }
  50. /** 进入登录界面 - 内部使用 */
  51. - (void)enterLoginVCFromScene {
  52. // UIViewController *vc = [[UIViewController alloc] init];
  53. // vc.view.backgroundColor = [UIColor redColor];
  54. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  55. // self.window.rootViewController = nvc;
  56. }
  57. /** 主界面 - 内部使用 */
  58. - (void)enterMainVCFromScene {
  59. // ConnectTestViewController *qrCodeVCNav = [[ConnectTestViewController alloc] init];
  60. // self.window.rootViewController = qrCodeVCNav;
  61. // return;/*临时测试*/
  62. /*先判断本地有无设备 无设备时需要先扫码添加设备*/
  63. NSDictionary *deviceDict = [HWDataManager getObjectWithKey:Const_Have_Add_Device];
  64. if (!deviceDict || ![[deviceDict allKeys] containsObject:Const_Have_Add_Device_SN]){
  65. /*扫码界面*/
  66. TipsQRCodeViewController *qrCodeVC = [[TipsQRCodeViewController alloc] init];
  67. BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
  68. self.window.rootViewController = qrCodeVCNav;
  69. _isQRCodeType = YES;
  70. return;
  71. }
  72. //有设备了先去做链接准备 // 80bec9c5
  73. NSString *SNStr = deviceDict[@"Const_Have_Add_Device_SN"];
  74. NSString *sdnId = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.sdnId;
  75. if(SNStr && !sdnId){
  76. [[connectDeviceManager shareInstance] getThridMsgBySN:SNStr needReconnect:YES didNetEnd:^(bool didSuc) {
  77. }];
  78. }
  79. // GuideViewController
  80. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  81. if (haveGuide) {
  82. ;
  83. }else {
  84. GuideViewController *guiDeVC = [[GuideViewController alloc] init];
  85. guiDeVC.delegate = self;
  86. guiDeVC.sn = SNStr;
  87. self.window.rootViewController = guiDeVC;
  88. return;
  89. }
  90. // if (![[deviceDict allKeys] containsObject:Const_Have_Add_Device_PWD]){
  91. // /*没有设置密码*/
  92. // SetPWDFirstViewController *qrCodeVC = [[SetPWDFirstViewController alloc] init];
  93. // BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
  94. // self.window.rootViewController = qrCodeVCNav;
  95. //
  96. // return;
  97. // }
  98. //确保通过SN号拿到密码了
  99. //非扫码进入 进入到这里很可能还没联网拿到设备最新信息
  100. if(![connectDeviceManager shareInstance].DeviceThirdIdMod){
  101. if(!_checkSNDataTimer){
  102. _checkSNDataTimer = [NSTimer scheduledTimerWithTimeInterval:0.5 target:self selector:@selector(enterMainVCFromScene) userInfo:nil repeats:YES];
  103. //BOOL haveOpenMask = [HWDataManager getBoolWithKey:Const_Mask_View_Open];
  104. NSInteger maskModel = [HWDataManager getIntegerWithKey:Const_Mask_View_Model];
  105. //添加默认启动图片
  106. if(!_customLaunchV && maskModel == 0){
  107. _customLaunchV = [[customLaunchView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_W, SCREEN_H)];
  108. [self.window addSubview:_customLaunchV];
  109. }
  110. }
  111. return;
  112. }
  113. if(_checkSNDataTimer){
  114. [_checkSNDataTimer invalidate];
  115. [_customLaunchV removeFromSuperview];
  116. _customLaunchV = nil;
  117. }
  118. //是否已经有密码了 有就是输入密码 没有就是设置密码
  119. NSString *curPwd = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.password;
  120. sdnId = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.sdnId;
  121. if(!sdnId){
  122. HLog(@"没有拿到sdnId");
  123. [[connectDeviceManager shareInstance] getThridMsgBySN:SNStr needReconnect:YES didNetEnd:^(bool didSuc) {
  124. }];
  125. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  126. mainBlock(^{
  127. [self enterMainVCFromScene];
  128. });
  129. });
  130. return;
  131. }
  132. if(curPwd && curPwd.length > 0){
  133. /*设置密码*/
  134. // inputPWDViewController *nextVC = [[inputPWDViewController alloc] init];
  135. // BaseNavigationController *nextVCNav = [[BaseNavigationController alloc] initWithRootViewController:nextVC];
  136. // self.window.rootViewController = nextVCNav;
  137. }
  138. else{
  139. /*没有设置密码*/
  140. SetPWDFirstViewController *qrCodeVC = [[SetPWDFirstViewController alloc] init];
  141. BaseNavigationController *qrCodeVCNav = [[BaseNavigationController alloc] initWithRootViewController:qrCodeVC];
  142. self.window.rootViewController = qrCodeVCNav;
  143. return;
  144. }
  145. if(_curPlayerVC){
  146. [_curPlayerVC disconnectVideoServer];
  147. }
  148. //每次进入
  149. PlayerViewController *playerRootVC = [[PlayerViewController alloc] init];
  150. if(self.isLoginAgainType){
  151. playerRootVC.isLoginAgainType = self.isLoginAgainType;
  152. }
  153. playerRootVC.isPwdVCShow = YES;
  154. _curPlayerVC = playerRootVC;
  155. BaseNavigationController *playerNav = [[BaseNavigationController alloc] initWithRootViewController:playerRootVC];
  156. self.window.rootViewController = playerNav;
  157. self.isLoginAgainType = NO;
  158. if(!_isQRCodeType){
  159. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  160. mainBlock(^{
  161. [playerRootVC setShowImgAndVoiceTypeFun:NO];
  162. });
  163. });
  164. [self showCalculatorVC];
  165. _isQRCodeType = NO;
  166. }
  167. // MySetViewController *playerRootVC = [[MySetViewController alloc] init];
  168. // BaseNavigationController *playerNav = [[BaseNavigationController alloc] initWithRootViewController:playerRootVC];
  169. // self.window.rootViewController = playerNav;
  170. }
  171. - (void)setPwdOk{
  172. [self enterMainVCFromScene];
  173. // NSArray *dataArray = [BaseModel bg_findAll:DB_BrowserWindows_TableName];
  174. //
  175. // if (dataArray.count == 0) { // 浏览器没有窗口
  176. // // 加载首页
  177. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  178. // vc.webUrl = Const_HomeUrl;
  179. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  180. // self.window.rootViewController = nvc;
  181. //
  182. // }else {
  183. // // 浏览器当前窗口索引ID
  184. // NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  185. // NSString *where = [NSString stringWithFormat:@"where %@=%ld",bg_sqlKey(@"ID"),(long)ID];
  186. // NSArray* finfAlls = [BaseModel bg_find:DB_BrowserWindows_TableName where:where];
  187. // BaseModel *model = finfAlls.firstObject;
  188. //
  189. // // 加载网页
  190. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  191. // vc.webUrl = model.webUrl;
  192. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  193. // self.window.rootViewController = nvc;
  194. // }
  195. }
  196. /** 登录界面 - 外部使用*/
  197. + (void)enterLoginVC {
  198. // SetPWDViewController *vc = [[SetPWDViewController alloc] init];
  199. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  200. // UIWindow *keyWindow = [iTools getKeyWindow];
  201. // keyWindow.rootViewController = nvc;
  202. }
  203. /** 主界面 - 外部使用 */
  204. + (void)enterMainVC {
  205. // AlbumHomeViewController *vc = [[AlbumHomeViewController alloc] init];
  206. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  207. // UIWindow *keyWindow = [iTools getKeyWindow];
  208. // keyWindow.rootViewController = nvc;
  209. }
  210. - (void)sceneDidDisconnect:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  211. }
  212. - (void)sceneDidBecomeActive:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  213. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  214. if (haveGuide) {
  215. ;
  216. }else {
  217. return;
  218. }
  219. [self showCalculatorVC];
  220. }
  221. - (void)sceneWillResignActive:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  222. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  223. if (haveGuide) {
  224. ;
  225. }else {
  226. return;
  227. }
  228. [self showCalculatorVC];
  229. }
  230. - (void)sceneWillEnterForeground:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  231. }
  232. - (void)sceneDidEnterBackground:(UIScene *)scene API_AVAILABLE(ios(13.0)){
  233. BOOL haveGuide = [HWDataManager getBoolWithKey:Const_Have_Show_Guide];
  234. if (haveGuide) {
  235. ;
  236. }else {
  237. return;
  238. }
  239. [self showCalculatorVC];
  240. }
  241. #pragma mark 初始化数据库-DB_BrowserWindows_TableName
  242. - (void)initBrowserWindow {
  243. // 浏览器当前所有窗口
  244. NSArray *dataArray = [BaseModel bg_findAll:DB_BrowserWindows_TableName];
  245. // 浏览器当前窗口索引ID
  246. NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  247. NSString *IDValue = [NSString stringWithFormat:@"%ld", ID];
  248. NSString *where = [NSString stringWithFormat:@"where %@=%@",bg_sqlKey(@"ID"),bg_sqlValue(IDValue)];
  249. NSArray *modelArr = [BaseModel bg_find:DB_BrowserWindows_TableName where:where];
  250. if (dataArray.count == 0) { // 浏览器没有窗口
  251. BaseModel *model = [[BaseModel alloc] init];
  252. model.ID = 0;
  253. model.name = @"主页";
  254. // model.iconFile = imageUrl;
  255. model.webUrl = Const_HomeUrl;
  256. // 写入数据库
  257. model.bg_tableName = DB_BrowserWindows_TableName;
  258. [model bg_saveOrUpdateAsync:^(BOOL isSuccess) {
  259. HLog(@"BaseModel写入:%@", isSuccess ? @"成功":@"失败");
  260. }];
  261. // 浏览器当前窗口索引ID
  262. [HWDataManager setIntegerWithKey:BrowserWindowsCurrentID value:0];
  263. }else if (modelArr.count == 0) { // 新建窗口
  264. BaseModel *model = [[BaseModel alloc] init];
  265. model.ID = ID;
  266. model.name = @"主页";
  267. // model.iconFile = imageUrl;
  268. model.webUrl = Const_HomeUrl;
  269. // 写入数据库
  270. model.bg_tableName = DB_BrowserWindows_TableName;
  271. [model bg_saveOrUpdateAsync:^(BOOL isSuccess) {
  272. HLog(@"BaseModel写入:%@", isSuccess ? @"成功":@"失败");
  273. }];
  274. }else { // 更新窗口数据
  275. // 浏览器当前窗口索引ID
  276. // NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  277. //
  278. // BaseModel *model = [[BaseModel alloc] init];
  279. // model.ID = ID;
  280. // model.name = @"主页";
  281. //// model.iconFile = imageUrl;
  282. // model.webUrl = Const_HomeUrl;
  283. //
  284. // // 更新数据库
  285. // model.bg_tableName = DB_BrowserWindows_TableName;
  286. // [model bg_saveOrUpdateAsync:^(BOOL isSuccess) {
  287. // HLog(@"BaseModel更新: %@", isSuccess ? @"成功":@"失败");
  288. // }];
  289. }
  290. }
  291. #pragma mark 获取当前屏幕的截图
  292. //- (UIImage *)getScreenShotImage {
  293. // CGSize size = [UIScreen mainScreen].bounds.size;
  294. // CGFloat scale = [UIScreen mainScreen].scale;
  295. // UIGraphicsBeginImageContextWithOptions(size, YES, scale);
  296. // [self.window.layer renderInContext:UIGraphicsGetCurrentContext()];
  297. // UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
  298. // UIGraphicsEndImageContext();
  299. // return image;
  300. //}
  301. #pragma mark 计算器伪装视图
  302. /*CalculatorViewController*/
  303. - (void)showCalculatorVC{
  304. /*无有效时长直接返回不加载任何加密界面*/
  305. NSString *PwdStr = nil;
  306. NSDictionary *deviceDict = [HWDataManager getObjectWithKey:Const_Have_Add_Device];
  307. //本地密码本地判断 密码改在服务器保持
  308. if ([[deviceDict allKeys] containsObject:Const_Have_Add_Device_PWD]){
  309. PwdStr = [deviceDict objectForKey:Const_Have_Add_Device_PWD];
  310. }
  311. //实时拿到的密码 (每次打开或者更换设备 通过SN重新拿)
  312. if([connectDeviceManager shareInstance].DeviceThirdIdMod.data.password){
  313. NSString *curPwd = [connectDeviceManager shareInstance].DeviceThirdIdMod.data.password;
  314. NSString*desPwdStr = [RSATool AES128Decrypt:curPwd key:AESCODEKEEYY];
  315. if(desPwdStr){
  316. PwdStr = desPwdStr;
  317. }
  318. }
  319. if (!PwdStr || [PwdStr isEqualToString:@""])
  320. {
  321. return;
  322. }
  323. // BOOL haveOpenMask = [HWDataManager getBoolWithKey:Const_Mask_View_Open];
  324. // if (!haveOpenMask){
  325. // //输入密码界面
  326. // [self closeCalculatorVC];
  327. // _inputVC = [[inputPWDViewController alloc] init];
  328. // [self.window addSubview:_inputVC.view];
  329. // return;
  330. // }
  331. BOOL haveVaildTime = [HWDataManager getBoolWithKey:Const_Have_No_VaildTime];
  332. if (haveVaildTime == YES){/*无有效时间*/
  333. return;
  334. }
  335. NSInteger maskModel = [HWDataManager getIntegerWithKey:Const_Mask_View_Model];
  336. if (maskModel == 0){
  337. //输入密码界面
  338. [self closeCalculatorVC];
  339. _inputVC = [[inputPWDViewController alloc] init];
  340. [self.window addSubview:_inputVC.view];
  341. }
  342. else if (maskModel == 2){
  343. /*浏览器*/
  344. [self closeCalculatorVC];
  345. _webVC = [[HWWebViewController alloc] init];
  346. _webVC.pwd = PwdStr;
  347. _webVC.webUrl = @"https://baidu.com";
  348. [self.window addSubview:_webVC.view];
  349. }else{
  350. /*计算器*/
  351. [self closeCalculatorVC];
  352. _calculatorVC = [[CalculatorViewController alloc] init];
  353. _calculatorVC.pwd = PwdStr;
  354. [self.window addSubview:_calculatorVC.view];
  355. }
  356. [[NSNotificationCenter defaultCenter] postNotificationName:ShowPwdVCNotification object:nil];
  357. }
  358. - (void)closeCalculatorVC{
  359. if (_calculatorVC){
  360. [_calculatorVC.view removeFromSuperview];
  361. }
  362. /*浏览器*/
  363. if (_webVC){
  364. [_webVC.view removeFromSuperview];
  365. }
  366. if(_inputVC){
  367. [_inputVC.view removeFromSuperview];
  368. }
  369. }
  370. - (NSString *)documentPathForAccount:(NSString *)account fileFolder:(NSString *)fileFolder {
  371. NSString *path = DocumentPath;
  372. if (account.length != 0) {
  373. path = [NSString stringWithFormat:@"%@/%@/",DocumentPath,account];
  374. }
  375. if ([fileFolder containsString:@"/"]) {
  376. NSString *path1 = [path stringByAppendingPathComponent:fileFolder];
  377. path1 = [path1 stringByDeletingLastPathComponent];
  378. NSError *error;
  379. if (![[NSFileManager defaultManager] fileExistsAtPath:path1]) {
  380. [[NSFileManager defaultManager] createDirectoryAtPath:path1 withIntermediateDirectories:YES attributes:nil error:&error];
  381. }
  382. }else{
  383. NSError *error;
  384. if (![[NSFileManager defaultManager] fileExistsAtPath:path]) {
  385. [[NSFileManager defaultManager] createDirectoryAtPath:path withIntermediateDirectories:YES attributes:nil error:&error];
  386. }
  387. }
  388. return [path stringByAppendingPathComponent:fileFolder];
  389. }
  390. - (void)startUseBtnBePressed{
  391. [self enterMainVCFromScene];
  392. // NSString *launchAppPWDPath = [self documentPathForAccount:@"" fileFolder:@"LaunchPWD"];
  393. // NSString *str = [[NSString alloc] initWithContentsOfFile:launchAppPWDPath encoding:(NSUTF8StringEncoding) error:nil];
  394. // if (!str || [str isEqualToString:@"0"])
  395. // {
  396. // SetUsePWDViewController *loginVC = [[SetUsePWDViewController alloc] init];
  397. // loginVC.delegate = self;
  398. // self.window.rootViewController = loginVC;
  399. //
  400. // return;
  401. // }
  402. //
  403. // NSArray *dataArray = [BaseModel bg_findAll:DB_BrowserWindows_TableName];
  404. //
  405. // if (dataArray.count == 0) { // 浏览器没有窗口
  406. // // 加载首页
  407. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  408. // vc.webUrl = Const_HomeUrl;
  409. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  410. // self.window.rootViewController = nvc;
  411. //
  412. // }else {
  413. // // 浏览器当前窗口索引ID
  414. // NSInteger ID = [HWDataManager getIntegerWithKey:BrowserWindowsCurrentID];
  415. // NSString *where = [NSString stringWithFormat:@"where %@=%ld",bg_sqlKey(@"ID"),(long)ID];
  416. // NSArray* finfAlls = [BaseModel bg_find:DB_BrowserWindows_TableName where:where];
  417. // BaseModel *model = finfAlls.firstObject;
  418. //
  419. // // 加载网页
  420. // HWWebViewController *vc = [[HWWebViewController alloc] init];
  421. // vc.webUrl = model.webUrl;
  422. // UINavigationController *nvc = [[UINavigationController alloc] initWithRootViewController:vc];
  423. // self.window.rootViewController = nvc;
  424. // }
  425. }
  426. - (void)loginOk{
  427. [self enterMainVCFromScene];
  428. }
  429. - (void)guideOk:(NSNotification*)not{
  430. NSString *object = not.object;
  431. if(object && [object isEqualToString:@"isLoginAgainType"]){
  432. self.isLoginAgainType = YES;
  433. }
  434. [self enterMainVCFromScene];
  435. }
  436. #pragma mark 调起系统网络允许
  437. -(void)getNetWorkPopViewFun
  438. {
  439. NSMutableDictionary *paraDict = [NSMutableDictionary new];
  440. // KWeakSelf
  441. [[netWorkManager shareInstance] CommonGetWithCallBackCode:@"" Parameters:paraDict success:^(id _Nonnull responseObject) {
  442. } failure:^(NSError * _Nonnull error) {
  443. }];
  444. }
  445. #pragma mark 主动上锁
  446. - (void)showLockViewFun:(NSNotification*)not
  447. {
  448. [self showCalculatorVC];
  449. }
  450. @end