mineViewController.m 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554
  1. //
  2. // mineViewController.m
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/6/21.
  6. //
  7. #import "mineViewController.h"
  8. #import "MineCommonUsedView.h"
  9. #import "privacyModeViewController.h"
  10. #import "TipsQRCodeForChangeDeviceViewController.h"
  11. #import "AboutViewController.h"
  12. #import "clearCacheAlretViewController.h"
  13. #import "inputPWDViewController.h"
  14. #import "customerServiceViewController.h"
  15. #import "customDownloadCacheManager.h"
  16. #import "CustomerWebViewController.h"
  17. #import "audioPlayingView.h"
  18. #import "DFPlayer.h"
  19. #import "audioPlayerViewController.h"
  20. @interface mineViewController ()
  21. @property(nonatomic,strong)UIButton *netButton;
  22. @property(nonatomic,strong)UILabel *snLabel;
  23. @property(nonatomic,strong)MineCommonUsedView *MineCommonUsedV;
  24. @end
  25. @implementation mineViewController
  26. - (void)viewDidLoad {
  27. [super viewDidLoad];
  28. // Do any additional setup after loading the view.
  29. [self.view setBackgroundColor:HWF5F7FAColor];
  30. [self.toolBar setHidden:YES];
  31. [self.navigationBar setHidden:YES];
  32. [self.navBarBGView setHidden:YES];
  33. [self drawAnyView];
  34. }
  35. - (void)drawAnyView{
  36. //顶底底部图片
  37. UIImageView *topImageV = [UIImageView new];
  38. topImageV.image = [UIImage imageNamed:@"Nas_top_img"];
  39. [self.view addSubview:topImageV];
  40. [topImageV mas_makeConstraints:^(MASConstraintMaker *make) {
  41. make.top.mas_equalTo(0);
  42. make.left.mas_equalTo(0);
  43. make.right.mas_equalTo(0);
  44. make.height.mas_equalTo(280.0*AUTOSCALE);
  45. }];
  46. //商标图片
  47. UIImageView *TipImageV = [UIImageView new];
  48. TipImageV.image = [UIImage imageNamed:@"mine_head_icon"];
  49. [self.view addSubview:TipImageV];
  50. [TipImageV mas_makeConstraints:^(MASConstraintMaker *make) {
  51. make.top.mas_equalTo(68);
  52. make.left.mas_equalTo(16);
  53. make.width.mas_equalTo(48);
  54. make.height.mas_equalTo(48);
  55. }];
  56. _snLabel = [[UILabel alloc] init];
  57. _snLabel.font = [UIFont boldSystemFontOfSize:14.0];
  58. _snLabel.textColor = [UIColor hwColor:@"#0A132B"];
  59. //_fileNamelabel.backgroundColor = [UIColor greenColor];
  60. [self.view addSubview:_snLabel];
  61. [_snLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  62. make.left.equalTo(TipImageV.mas_right).offset(5);
  63. make.right.mas_equalTo(-16);
  64. //make.centerY.mas_equalTo(TipImageV.mas_centerY).offset(0);
  65. make.top.mas_equalTo(TipImageV.mas_top).offset(0);
  66. make.height.mas_equalTo(20);
  67. }];
  68. _netButton = [[UIButton alloc] init];
  69. [_netButton setImage:[UIImage imageNamed:@"mine_net_icon"] forState:UIControlStateNormal];
  70. [_netButton setTitleColor:[UIColor hwColor:@"#058DFB"] forState:UIControlStateNormal];
  71. _netButton.titleLabel.font = [UIFont systemFontOfSize:12.0];
  72. //_netButton.tag = 1;
  73. //[_netButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
  74. _netButton.userInteractionEnabled = NO;
  75. [self.view addSubview:_netButton];
  76. _netButton.layer.cornerRadius = 12;
  77. _netButton.layer.borderWidth = 1.5;
  78. _netButton.layer.borderColor = [UIColor hwColor:@"#058DFB"].CGColor;
  79. _netButton.layer.masksToBounds = YES;
  80. [_netButton mas_makeConstraints:^(MASConstraintMaker *make) {
  81. //make.width.mas_equalTo(58);
  82. make.width.mas_equalTo(70);
  83. make.height.mas_equalTo(24);
  84. make.left.equalTo(TipImageV.mas_right).offset(5);
  85. make.bottom.mas_equalTo(TipImageV.mas_bottom).offset(0);
  86. }];
  87. //常用功能
  88. _MineCommonUsedV = [[MineCommonUsedView alloc] init];
  89. [self.view addSubview:_MineCommonUsedV];
  90. [_MineCommonUsedV mas_makeConstraints:^(MASConstraintMaker *make) {
  91. make.top.equalTo(TipImageV.mas_bottom).offset(15);
  92. make.left.mas_equalTo(0);
  93. make.right.mas_equalTo(0);
  94. make.height.mas_equalTo(210);
  95. }];
  96. KWeakSelf
  97. _MineCommonUsedV.didClickButtonFun = ^(NSInteger tag) {
  98. [weakSelf didClickCommonUsedFunBy:tag];
  99. };
  100. }
  101. #pragma mark 点击常用模块模块
  102. - (void)didClickCommonUsedFunBy:(NSInteger)tag
  103. {
  104. if([AFNetworkReachabilityManager sharedManager].networkReachabilityStatus == AFNetworkReachabilityStatusNotReachable)
  105. {
  106. [[iToast makeText:NSLocalizedString(@"phone_network_fail_Tips",nil)] show];
  107. return;
  108. }
  109. switch (tag)
  110. {
  111. case 10:{
  112. inputPWDViewController *nextVC = [inputPWDViewController new];
  113. nextVC.isCheckPwdType = YES;
  114. [self pushViewController:nextVC animated:YES];
  115. KWeakSelf
  116. nextVC.didInputRightPwdFun = ^{
  117. [weakSelf gotoPrivacyModeVCFun];
  118. };
  119. }
  120. break;
  121. case 11:{
  122. TipsQRCodeForChangeDeviceViewController *nextVC = [TipsQRCodeForChangeDeviceViewController new];
  123. [self pushViewController:nextVC animated:YES];
  124. }
  125. break;
  126. case 12:{
  127. CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
  128. vc.titleStr = NSLocalizedString(@"mine_help_title",nil);
  129. // NSString *url = @"http://testprivacy.phone.armclouding.com:1801/problemFeedback/#/pages/fileSharing/problem/index?sn=";
  130. // if([CloudService rangeOfString:@"hiboxde.armclouding.com"].location != NSNotFound){
  131. // //url = @"http://hiboxde.armclouding.com:7780/h5/rule.html";;
  132. // }
  133. NSString *url = [[NSString alloc] initWithFormat:@"%@/problemFeedback/#/pages/fileSharing/problem/index?sn=",CloudService];
  134. vc.webUrl = [[NSString alloc] initWithFormat:@"%@%@",url,[connectDeviceManager shareInstance].DeviceThirdIdMod.data.changeSn];
  135. [self pushViewController:vc animated:YES];
  136. //数据埋点
  137. [[netWorkManager shareInstance] DataEmbeddingPointBy:2 withEventValue:@"Help_feedback"];
  138. }
  139. break;
  140. case 13:{
  141. customerServiceViewController *vc = [customerServiceViewController new];
  142. [self pushViewController:vc animated:YES];
  143. }
  144. break;
  145. case 14:{
  146. CustomerWebViewController *vc = [[CustomerWebViewController alloc] init];
  147. vc.titleStr = NSLocalizedString(@"mine_newuser_title",nil);
  148. // NSString *url = @"http://testprivacy.phone.androidscloud.com:1801/warrantyService/index.html#/novice";
  149. // if([CloudService rangeOfString:@"hiboxde.armclouding.com"].location != NSNotFound){
  150. // //url = @"http://hiboxde.armclouding.com:7780/h5/rule.html";;
  151. // }
  152. NSString *url = [[NSString alloc] initWithFormat:@"%@/warrantyService/index.html#/novice",CloudService];
  153. vc.webUrl = url;
  154. [self pushViewController:vc animated:YES];
  155. }
  156. break;
  157. case 15:{
  158. [self clickClearCacheButtonFun];
  159. }
  160. break;
  161. case 16:{
  162. AboutViewController *nextVC = [[AboutViewController alloc] init];
  163. nextVC.getSysInfo = ^{
  164. [[webSocketManager shareInstance] getSysInfoFun];
  165. };
  166. [self pushViewController:nextVC animated:YES];
  167. }
  168. break;
  169. case 17:{
  170. [[iToast makeText:@"点击了注销"] show];
  171. }
  172. break;
  173. default:
  174. break;
  175. }
  176. }
  177. #pragma mark 去设置隐私
  178. - (void)gotoPrivacyModeVCFun
  179. {
  180. privacyModeViewController *nextVC = [[privacyModeViewController alloc] init];
  181. [self pushViewController:nextVC animated:YES];
  182. }
  183. #pragma mark 清理缓存相关
  184. - (void)clickClearCacheButtonFun
  185. {
  186. KWeakSelf
  187. /*弹窗提示清除缓存*/
  188. clearCacheAlretViewController *nextVC = [[clearCacheAlretViewController alloc] initWithTiTle:NSLocalizedString(@"my_set_no_clear_cache",nil)
  189. msg:NSLocalizedString(@"clear_cache_tip",nil)
  190. imageStr:nil
  191. cancelTitle:NSLocalizedString(@"other_cancel",nil)
  192. okTitle:NSLocalizedString(@"other_clear",nil) isOkBtnHighlight:YES
  193. didClickOk:^(BOOL isSelect) {
  194. [weakSelf handleClearCacheFunWith:isSelect];
  195. } didClickCancel:^{
  196. }];
  197. nextVC.modalPresentationStyle = UIModalPresentationCustom;
  198. [self presentViewController:nextVC animated:YES completion:^{
  199. nextVC.view.superview.backgroundColor = [UIColor clearColor];
  200. }];
  201. }
  202. - (void)handleClearCacheFunWith:(BOOL)isSelectFileTransfer
  203. {
  204. [self ClearCommonCacheFun:isSelectFileTransfer];
  205. //数据埋点
  206. [[netWorkManager shareInstance] DataEmbeddingPointBy:2 withEventValue:@"Clear_cache"];
  207. }
  208. - (void)ClearCommonCacheFun:(BOOL)isSelectFileTransfer
  209. {
  210. NSString *ruiyunLogPath = [NSString stringWithFormat:@"%@/logs/debug_0.log",CachesPatch];
  211. long logSize1 = [iTools fileSizeAtPath:ruiyunLogPath];
  212. [[NSFileManager defaultManager] removeItemAtPath:ruiyunLogPath error:nil];
  213. NSString *appLogPath = [NSString stringWithFormat:@"%@/logs/app.log",CachesPatch];
  214. long logSize2 = [iTools fileSizeAtPath:appLogPath];
  215. [[NSFileManager defaultManager] removeItemAtPath:appLogPath error:nil];
  216. //
  217. NSString *downLoadThumbnailPath = [NSString stringWithFormat:@"%@/DownLoadThumbnail",CachesPatch];
  218. long logSize3 = [iTools folderSizeAtPath:downLoadThumbnailPath];
  219. [[NSFileManager defaultManager] removeItemAtPath:downLoadThumbnailPath error:nil];
  220. NSString *downLoadNasDowmPath = [customDownloadCacheManager getFullDirector];
  221. long logSize4 = [iTools folderSizeAtPath:downLoadNasDowmPath];
  222. [[NSFileManager defaultManager] removeItemAtPath:downLoadNasDowmPath error:nil];
  223. long clearTotal = logSize1 + logSize2 + logSize3 +logSize4 ;
  224. if(isSelectFileTransfer){
  225. [self clearCacheByFileTransferFun:clearTotal];
  226. }
  227. else{
  228. [self showClearAllTipBy:clearTotal];
  229. }
  230. }
  231. - (void)showClearAllTipBy:(long)clearTotal
  232. {
  233. long clearTotalK = clearTotal /1024;
  234. NSString *tipStr1 = NSLocalizedString(@"my_set_no_clear_finish",nil);
  235. NSString *tipStr2 = @"";
  236. if(clearTotalK > 1024*1024){
  237. tipStr2 = [[NSString alloc] initWithFormat:@"%.02fGB",clearTotalK/1024.0/1024.0];
  238. }
  239. else if(clearTotalK > 1024){
  240. tipStr2 = [[NSString alloc] initWithFormat:@"%.02fMB",clearTotalK/1024.0];
  241. }
  242. else //if(clearTotalK > 0)
  243. {
  244. tipStr2 = [[NSString alloc] initWithFormat:@"%ldKB",clearTotalK];
  245. }
  246. NSString *tipfullStr = [[NSString alloc] initWithFormat:@"%@%@",tipStr1,tipStr2];
  247. //提示语
  248. [[iToast makeText:tipfullStr] show];
  249. }
  250. - (void)clearCacheByFileTransferFun:(long)clearTotal
  251. {
  252. //清理图片
  253. BOOL needReUploadingType = NO;
  254. NSString *ImagePath = [NSString stringWithFormat:@"%@/Image",CachesPatch];
  255. long imageAllSize = [iTools folderSizeAtPath:ImagePath];
  256. if([uploadFileManager shareInstance].curUploadFileDataModel
  257. && [uploadFileManager shareInstance].curUploadFileDataModel.curUploadFileType == uploadFileTypeImage
  258. && [uploadFileManager shareInstance].curUploadFileDataModel.curUploadStateType == uploadStateUploading){
  259. [uploadFileManager shareInstance].curUploadFileDataModel.curUploadStateType = uploadStateSuspend;
  260. needReUploadingType = YES;
  261. }
  262. [[NSFileManager defaultManager] removeItemAtPath:ImagePath error:nil];
  263. if(needReUploadingType){
  264. dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
  265. [uploadFileManager shareInstance].curUploadFileDataModel.curUploadStateType = uploadStateUploading;
  266. });
  267. }
  268. //清理视频文件
  269. NSString *videoPath = [NSString stringWithFormat:@"%@/Video",CachesPatch];
  270. long vide0AllSizeBeforeClear = [iTools folderSizeAtPath:videoPath];
  271. NSString *backupsingVideoName = nil;
  272. if([backupsFileManager shareInstance].curPhotosBackupsTaskMod
  273. && [backupsFileManager shareInstance].curPhotosBackupsTaskMod.curUploadFileType == uploadFileTypeVideo){
  274. backupsingVideoName = [backupsFileManager shareInstance].curPhotosBackupsTaskMod.filename;
  275. }
  276. NSString *uploadingVideoName = nil;
  277. if([uploadFileManager shareInstance].curUploadFileDataModel
  278. && [uploadFileManager shareInstance].curUploadFileDataModel.curUploadFileType == uploadFileTypeVideo){
  279. uploadingVideoName = [uploadFileManager shareInstance].curUploadFileDataModel.filename;
  280. }
  281. if(backupsingVideoName || uploadingVideoName){
  282. NSMutableString *fileName = [NSMutableString new];
  283. if(backupsingVideoName){
  284. [fileName appendString:backupsingVideoName];
  285. }
  286. if(uploadingVideoName){
  287. if(fileName.length > 0){
  288. [fileName appendString:@"|"];
  289. }
  290. [fileName appendString:uploadingVideoName];
  291. }
  292. [self deleteFilesInDirectoryAtPath:videoPath withOutFileName:fileName];
  293. }
  294. else{
  295. [[NSFileManager defaultManager] removeItemAtPath:videoPath error:nil];
  296. }
  297. long vide0AllSizeAfterClear = [iTools folderSizeAtPath:videoPath];
  298. //清理下载中
  299. NSString *downLoadingPath = [NSString stringWithFormat:@"%@/DownLoadFlie",CachesPatch];
  300. long downLoadingSizeBeforeClear = [iTools folderSizeAtPath:downLoadingPath];
  301. NSString *downLoadingFileName = nil;
  302. if([downloadManager shareInstance].curDownloadFileModel
  303. && ([downloadManager shareInstance].curDownloadFileModel.curDownloadStateType == downloadStateUploading
  304. ||[downloadManager shareInstance].curDownloadFileModel.curDownloadStateType == downloadStateSuspend)){
  305. downLoadingFileName = [[downloadManager shareInstance].curDownloadFileModel getFileNameFun];
  306. [self deleteFilesInDirectoryAtPath:downLoadingPath withOutFileName:downLoadingFileName];
  307. }
  308. else{
  309. [[NSFileManager defaultManager] removeItemAtPath:downLoadingPath error:nil];
  310. }
  311. long downLoadingSizeAfterClear = [iTools folderSizeAtPath:downLoadingPath];
  312. //清理数据库表 完成的
  313. //下载完成
  314. NSMutableString* where = [[NSMutableString alloc] initWithString:@"where "];
  315. NSString *curStr = [NSString stringWithFormat:@"%@=%@ or %@=%@ ",bg_sqlKey(@"curDownloadStateType"),bg_sqlValue([NSNumber numberWithInt:downloadStateDone]),bg_sqlKey(@"curDownloadStateType"),bg_sqlValue([NSNumber numberWithInt:downloadStateFail])];
  316. [where appendString:curStr];
  317. [couldPhoneFileModel bg_deleteAsync:download_tableName where:where complete:^(BOOL isSuccess) {
  318. }];
  319. //上传完成
  320. NSMutableString* where2 = [[NSMutableString alloc] initWithString:@"where "];
  321. NSString *curStr2 = [NSString stringWithFormat:@"%@=%@ or %@=%@ ",bg_sqlKey(@"curUploadStateType"),bg_sqlValue([NSNumber numberWithInt:uploadStateDone]),
  322. bg_sqlKey(@"curUploadStateType"),bg_sqlValue([NSNumber numberWithInt:uploadStateFail])];
  323. [where2 appendString:curStr2];
  324. [uploadFileDataModel bg_deleteAsync:upLoadFile_image_tableName where:where2 complete:^(BOOL isSuccess) {
  325. }];
  326. //清理音频播放缓存
  327. NSString *audioPlayPath = [NSString stringWithFormat:@"%@/%@",DocumentPath,@"playAudioCache"];;
  328. long audioPlayAllSize = [iTools folderSizeAtPath:audioPlayPath];
  329. [[NSFileManager defaultManager] removeItemAtPath:audioPlayPath error:nil];
  330. long curTotolSize = (downLoadingSizeBeforeClear - downLoadingSizeAfterClear) + (vide0AllSizeBeforeClear - vide0AllSizeAfterClear) + imageAllSize + clearTotal + audioPlayAllSize;
  331. [self showClearAllTipBy:curTotolSize];
  332. }
  333. - (BOOL)deleteFilesInDirectoryAtPath:(NSString *)path withOutFileName:(NSString*)fileNames {
  334. NSFileManager *fileManager = [NSFileManager defaultManager];
  335. NSArray *fileNameArr = [fileNames componentsSeparatedByString:@"|"];
  336. // 使用NSDirectoryEnumerator遍历目录
  337. NSDirectoryEnumerator *directoryEnumerator = [fileManager enumeratorAtPath:path];
  338. NSString *fileName;
  339. while ((fileName = [directoryEnumerator nextObject])) {
  340. BOOL canDelType = YES;
  341. for (NSString*noDelfileName in fileNameArr) {
  342. if([noDelfileName isEqualToString:fileName]){
  343. canDelType = NO;
  344. break;
  345. }
  346. }
  347. if(canDelType){
  348. NSString *filePath = [path stringByAppendingPathComponent:fileName];
  349. // 如果是文件,则删除它
  350. if ([fileManager fileExistsAtPath:filePath]) {
  351. BOOL success = [fileManager removeItemAtPath:filePath error:nil];
  352. if (!success) {
  353. // 如果删除失败,返回NO并处理错误
  354. return NO;
  355. }
  356. }
  357. }
  358. }
  359. // 所有文件都成功删除,返回YES
  360. return YES;
  361. }
  362. #pragma mark 数据设置
  363. - (void)setDataFun
  364. {
  365. NSString *fullSNStr = [[NSString alloc] initWithFormat:@"SN:%@",[connectDeviceManager shareInstance].DeviceThirdIdMod.data.changeSn];
  366. _snLabel.text = fullSNStr;
  367. NSString *NetButText = NSLocalizedString(@"mine_net_LAN",nil);
  368. if(![connectDeviceManager shareInstance].isPingOk){
  369. NetButText = NSLocalizedString(@"mine_net_WAN",nil);
  370. }
  371. RCSocketCloudPhoneStatus status = [[webSocketManager shareInstance].commandChannelManager rc_socketStatus];
  372. HLog(@"rc_socketStatus:%ld",status)
  373. if(status == RCSocketCloudPhoneStatusFailed
  374. ||status == RCSocketCloudPhoneStatusClosedByServer
  375. ||status == RCSocketCloudPhoneStatusClosedByUser
  376. ||!ksharedAppDelegate.isWebSockLinkOKAginType//断开了
  377. )
  378. {
  379. NetButText = NSLocalizedString(@"mine_net_unLink",nil);
  380. }
  381. [_netButton setTitle:NetButText forState:UIControlStateNormal];
  382. }
  383. - (void)viewWillAppear:(BOOL)animated
  384. {
  385. [super viewWillAppear:animated];
  386. [self setDataFun];
  387. [self handelAudioPlayingViewFun];
  388. }
  389. - (void)viewWillDisappear:(BOOL)animated{
  390. [super viewWillDisappear:animated];
  391. }
  392. - (void)pushViewController:(UIViewController*)vc animated:(BOOL)animated
  393. {
  394. [self.navigationController pushViewController:vc animated:animated];
  395. }
  396. #pragma mark 处理音频播放中的视图状态
  397. - (void)handelAudioPlayingViewFun
  398. {
  399. audioPlayingView * audioPlayingV = [audioPlayingView sharedInstance];
  400. if([DFPlayer sharedPlayer].state == DFPlayerStateBuffering
  401. ||[DFPlayer sharedPlayer].state == DFPlayerStatePlaying
  402. ||[DFPlayer sharedPlayer].state == DFPlayerStatePause){//播放中
  403. [self showAudioPlayingViewFun];
  404. }
  405. else{
  406. [self hideAudioPlayingViewFun];
  407. }
  408. KWeakSelf
  409. audioPlayingV.didClickButtonFun = ^(NSInteger tag) {
  410. if(tag == 1){
  411. [weakSelf hideAudioPlayingViewFun];
  412. }
  413. else if(tag == 5){
  414. [weakSelf AudioPlayingGotoAudioPlayerVCFun];
  415. }
  416. };
  417. }
  418. - (void)AudioPlayingGotoAudioPlayerVCFun{
  419. audioPlayerViewController *vc = [audioPlayerViewController new];
  420. vc.isfirstEnterType = NO;
  421. [self.navigationController pushViewController:vc animated:YES];
  422. }
  423. #pragma mark 显示音频播放中的视图
  424. - (void)showAudioPlayingViewFun
  425. {
  426. audioPlayingView * audioPlayingV = [audioPlayingView sharedInstance];
  427. [self.view addSubview:audioPlayingV];
  428. [audioPlayingV mas_makeConstraints:^(MASConstraintMaker *make) {
  429. make.height.mas_equalTo(49);
  430. make.left.mas_equalTo(0);
  431. make.right.mas_equalTo(0);
  432. make.bottom.mas_equalTo(-TABBARHEIGHT);
  433. }];
  434. }
  435. #pragma mark 隐藏音频播放中的视图
  436. - (void)hideAudioPlayingViewFun
  437. {
  438. // audioPlayingView * audioPlayingV = [audioPlayingView sharedInstance];
  439. // [audioPlayingV removeFromSuperview];
  440. }
  441. @end