shareRecordDetailsHWViewController.m 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. //
  2. // shareRecordDetailsHWViewController.m
  3. // 双子星云手机
  4. //
  5. // Created by xd h on 2024/5/15.
  6. //
  7. #import "shareRecordDetailsHWViewController.h"
  8. @interface shareRecordDetailsHWViewController ()
  9. @property (nonatomic,strong)UIView *whiteBgView;
  10. @property (nonatomic,strong)UILabel *shareTitleLabel;
  11. @property (nonatomic,strong)UILabel *shareBeginDateLabel;
  12. @property (nonatomic,strong)UIImageView *shareQRCodeImageView;
  13. @property (nonatomic,strong)UIButton*checkShareLinkButton;
  14. @property (nonatomic,strong)UIView *extractCodeBgView;
  15. @property (nonatomic,strong)UILabel *extractCodeTip2Lab;
  16. @property (nonatomic,strong)UILabel *shareEndDateLabel;
  17. @property (nonatomic,strong)UIButton*cancelShareLinkButton;
  18. @property (nonatomic,strong)UIButton*shareLinkCopyButton;
  19. @end
  20. @implementation shareRecordDetailsHWViewController
  21. - (void)viewDidLoad {
  22. [super viewDidLoad];
  23. // Do any additional setup after loading the view.
  24. [self.toolBar setHidden:YES];
  25. [self.navigationBar setHidden:YES];
  26. [self.navBarBGView setHidden:NO];
  27. self.navBarBGView.backgroundColor = [UIColor whiteColor];
  28. [self.view setBackgroundColor:[UIColor hwColor:@"#F5F7FA"]];
  29. self.titleLabel.text = NSLocalizedString(@"share_record_title",nil);
  30. [self drawAnyView];
  31. }
  32. - (void)drawAnyView{
  33. //
  34. _whiteBgView = [[UIView alloc] init];
  35. _whiteBgView.backgroundColor = [UIColor whiteColor];
  36. [self.view addSubview:_whiteBgView];
  37. _whiteBgView.layer.cornerRadius = 8;
  38. _whiteBgView.layer.masksToBounds = YES;
  39. [_whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
  40. make.left.mas_equalTo(15);
  41. make.right.mas_equalTo(-15);
  42. make.top.equalTo(self.navBarBGView.mas_bottom).offset(40.f);
  43. make.height.mas_equalTo(448);
  44. }];
  45. //文件夹图标
  46. UIImageView *folderImageView = [[UIImageView alloc] init];
  47. folderImageView.image = [UIImage imageNamed:@"uploadFile_file_icon"];
  48. folderImageView.backgroundColor = [UIColor whiteColor];
  49. [self.view addSubview:folderImageView];
  50. folderImageView.layer.cornerRadius = 44;
  51. folderImageView.layer.masksToBounds = YES;
  52. [folderImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  53. make.top.equalTo(self.navBarBGView.mas_bottom).offset(10.f);
  54. make.centerX.mas_equalTo(self.view.mas_centerX);
  55. make.width.mas_equalTo(88);
  56. make.height.mas_equalTo(88);
  57. }];
  58. _shareTitleLabel = [[UILabel alloc] init];
  59. //_shareTitleLabel.text = @"banner.png等多个文件";
  60. _shareTitleLabel.textAlignment = NSTextAlignmentCenter;
  61. _shareTitleLabel.textColor = HW0A132BColor;
  62. _shareTitleLabel.font = [UIFont systemFontOfSize:14.0];
  63. [_whiteBgView addSubview:_shareTitleLabel];
  64. [_shareTitleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  65. make.top.equalTo(folderImageView.mas_bottom).offset(5.f);
  66. make.left.mas_equalTo(15);
  67. make.right.mas_equalTo(-15);
  68. make.height.mas_equalTo(20);
  69. }];
  70. _shareBeginDateLabel = [[UILabel alloc] init];
  71. //_shareBeginDateLabel.text = @"2024/04/25 19:45";
  72. _shareBeginDateLabel.textAlignment = NSTextAlignmentCenter;
  73. _shareBeginDateLabel.textColor = HW666666Color;
  74. _shareBeginDateLabel.font = [UIFont systemFontOfSize:12.0];
  75. [_whiteBgView addSubview:_shareBeginDateLabel];
  76. [_shareBeginDateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  77. make.top.equalTo(_shareTitleLabel.mas_bottom).offset(25.f);
  78. make.left.mas_equalTo(15);
  79. make.right.mas_equalTo(-15);
  80. make.height.mas_equalTo(15);
  81. }];
  82. UIImageView *QRCodeEdgingImageView = [[UIImageView alloc] init];
  83. QRCodeEdgingImageView.image = [UIImage imageNamed:@"share_QRCode_edging"];
  84. [_whiteBgView addSubview:QRCodeEdgingImageView];
  85. [QRCodeEdgingImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  86. make.top.equalTo(_shareBeginDateLabel.mas_bottom).offset(10.f);
  87. make.centerX.mas_equalTo(self.view.mas_centerX);
  88. make.width.mas_equalTo(208);
  89. make.height.mas_equalTo(208);
  90. }];
  91. _shareQRCodeImageView = [[UIImageView alloc] init];
  92. //_shareQRCodeImageView.backgroundColor = [UIColor lightGrayColor];
  93. [QRCodeEdgingImageView addSubview:_shareQRCodeImageView];
  94. [_shareQRCodeImageView mas_makeConstraints:^(MASConstraintMaker *make) {
  95. make.top.mas_equalTo(20);
  96. make.bottom.mas_equalTo(-20);
  97. make.left.mas_equalTo(20);
  98. make.right.mas_equalTo(-20);
  99. }];
  100. //_shareQRCodeImageView.image = [self generateQRCodeWithInputMessage:@"http://baidu.com" Width:168 Height:168];
  101. _checkShareLinkButton = [[UIButton alloc] init];
  102. [_checkShareLinkButton setTitle:NSLocalizedString(@"check_share_link_title",nil) forState:UIControlStateNormal];
  103. [_checkShareLinkButton setTitleColor:[UIColor hwColor:@"#01B7EA"] forState:UIControlStateNormal];
  104. _checkShareLinkButton.titleLabel.font = [UIFont systemFontOfSize:14.0];
  105. [_checkShareLinkButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
  106. _checkShareLinkButton.tag = 1;
  107. [self.view addSubview:_checkShareLinkButton];
  108. [_checkShareLinkButton mas_makeConstraints:^(MASConstraintMaker *make) {
  109. make.left.mas_equalTo(15);
  110. make.right.mas_equalTo(-15);
  111. make.top.equalTo(QRCodeEdgingImageView.mas_bottom).offset(0.f);
  112. make.height.mas_equalTo(30);
  113. }];
  114. //提取码
  115. _extractCodeBgView = [[UIView alloc] init];
  116. _extractCodeBgView.backgroundColor = [UIColor hwColor:@"#F9F9F9"];
  117. [_whiteBgView addSubview:_extractCodeBgView];
  118. _extractCodeBgView.layer.cornerRadius = 8;
  119. _extractCodeBgView.layer.masksToBounds = YES;
  120. [_extractCodeBgView mas_makeConstraints:^(MASConstraintMaker *make) {
  121. make.left.mas_equalTo(50);
  122. make.right.mas_equalTo(-50);
  123. make.top.equalTo(_checkShareLinkButton.mas_bottom).offset(15);
  124. make.height.mas_equalTo(40);
  125. }];
  126. UILabel *extractCodeTipLab = [[UILabel alloc] init];
  127. extractCodeTipLab.font = [UIFont systemFontOfSize:14.f];
  128. [extractCodeTipLab setTextColor:HW0A132BColor];
  129. extractCodeTipLab.text = NSLocalizedString(@"share_Extract_code_tip",nil);
  130. [_extractCodeBgView addSubview:extractCodeTipLab];
  131. [extractCodeTipLab mas_makeConstraints:^(MASConstraintMaker *make) {
  132. make.left.mas_equalTo(15);
  133. make.right.mas_equalTo(_extractCodeBgView.mas_centerX);
  134. make.top.mas_equalTo(0);
  135. make.bottom.mas_equalTo(0);
  136. }];
  137. _extractCodeTip2Lab = [[UILabel alloc] init];
  138. _extractCodeTip2Lab.font = [UIFont systemFontOfSize:14.f];
  139. //[_extractCodeTip2Lab setTextAlignment:(NSTextAlignmentRight)];
  140. [_extractCodeTip2Lab setTextAlignment:(NSTextAlignmentCenter)];
  141. [_extractCodeTip2Lab setTextColor:[UIColor hwColor:@"#01B7EA" alpha:1.0]];
  142. [_extractCodeBgView addSubview:_extractCodeTip2Lab];
  143. //extractCodeTip2Lab.text = _addShareMod.data.extractionCode;
  144. [_extractCodeTip2Lab mas_makeConstraints:^(MASConstraintMaker *make) {
  145. //make.left.mas_equalTo(extractCodeTipLab.mas_right);
  146. make.left.mas_equalTo(20);
  147. make.right.mas_equalTo(-20);
  148. make.top.mas_equalTo(0);
  149. make.bottom.mas_equalTo(0);
  150. }];
  151. _shareEndDateLabel = [[UILabel alloc] init];
  152. //_shareEndDateLabel.text = @"2024/04/25 19:45";
  153. _shareEndDateLabel.textAlignment = NSTextAlignmentCenter;
  154. _shareEndDateLabel.textColor = HW0A132BColor;
  155. _shareEndDateLabel.font = [UIFont systemFontOfSize:14.0];
  156. [_whiteBgView addSubview:_shareEndDateLabel];
  157. [_shareEndDateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
  158. make.top.equalTo(_extractCodeBgView.mas_bottom).offset(15.f);
  159. make.left.mas_equalTo(15);
  160. make.right.mas_equalTo(-15);
  161. make.height.mas_equalTo(15);
  162. }];
  163. CGFloat shareButW = (SCREEN_W - 20 -20 -15)/2.0;
  164. _cancelShareLinkButton = [[UIButton alloc] init];
  165. [_cancelShareLinkButton setTitle:NSLocalizedString(@"cancel_share_title",nil) forState:UIControlStateNormal];
  166. [_cancelShareLinkButton setTitleColor:HW0A132BColor forState:UIControlStateNormal];
  167. _cancelShareLinkButton.titleLabel.font = [UIFont systemFontOfSize:14.0];
  168. [_cancelShareLinkButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
  169. _cancelShareLinkButton.tag = 10;
  170. [self.view addSubview:_cancelShareLinkButton];
  171. _cancelShareLinkButton.layer.cornerRadius = 8;
  172. _cancelShareLinkButton.layer.masksToBounds = YES;
  173. _cancelShareLinkButton.backgroundColor = [UIColor hwColor:@"#E3E8F1"];
  174. [_cancelShareLinkButton mas_makeConstraints:^(MASConstraintMaker *make) {
  175. make.left.mas_equalTo(20);
  176. make.width.mas_equalTo(shareButW);
  177. make.top.equalTo(_whiteBgView.mas_bottom).offset(25);
  178. make.height.mas_equalTo(48);
  179. }];
  180. _shareLinkCopyButton = [[UIButton alloc] init];
  181. CGFloat w_btn = shareButW;//SCREEN_W-130 -15 -10 -15;
  182. // gradient
  183. CAGradientLayer *gl = [CAGradientLayer layer];
  184. gl.frame = CGRectMake(0,0,w_btn,48.f);
  185. gl.startPoint = CGPointMake(0, 0.5);
  186. gl.endPoint = CGPointMake(1, 0.5);
  187. gl.colors = @[(__bridge id)HW0CDEFDColor.CGColor, (__bridge id)HW058DFBColor.CGColor];
  188. gl.locations = @[@(0), @(1.0f)];
  189. [_shareLinkCopyButton.layer addSublayer:gl];
  190. [_shareLinkCopyButton setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
  191. [_shareLinkCopyButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:(UIControlEventTouchUpInside)];
  192. [_shareLinkCopyButton setTitle:NSLocalizedString(@"copy_share_link_title",nil) forState:(UIControlStateNormal)];
  193. [_shareLinkCopyButton.titleLabel setFont:[UIFont systemFontOfSize:14.f]];
  194. [_shareLinkCopyButton.layer setCornerRadius:8.f];
  195. _shareLinkCopyButton.clipsToBounds = YES;
  196. _shareLinkCopyButton.tag = 11;
  197. [self.view addSubview:_shareLinkCopyButton];
  198. [_shareLinkCopyButton mas_makeConstraints:^(MASConstraintMaker *make) {
  199. make.right.mas_equalTo(-20);
  200. make.width.mas_equalTo(w_btn);
  201. make.top.equalTo(_whiteBgView.mas_bottom).offset(25);
  202. make.height.mas_equalTo(48);
  203. }];
  204. }
  205. // 生成二维码
  206. - (UIImage *)generateQRCodeWithInputMessage:(NSString *)inputMessage
  207. Width:(CGFloat)width
  208. Height:(CGFloat)height{
  209. NSData *inputData = [inputMessage dataUsingEncoding:NSUTF8StringEncoding];
  210. CIFilter *filter = [CIFilter filterWithName:@"CIQRCodeGenerator"];
  211. [filter setValue:inputData forKey:@"inputMessage"];
  212. // [filter setValue:@"H" forKey:@"inputCorrectionLevel"]; // 设置二维码不同级别的容错率
  213. CIImage *ciImage = filter.outputImage;
  214. // 消除模糊
  215. CGFloat scaleX = MIN(width, height)/ciImage.extent.size.width;
  216. CGFloat scaleY = MIN(width, height)/ciImage.extent.size.height;
  217. ciImage = [ciImage imageByApplyingTransform:CGAffineTransformScale(CGAffineTransformIdentity, scaleX, scaleY)];
  218. UIImage *returnImage = [UIImage imageWithCIImage:ciImage];
  219. return returnImage;
  220. }
  221. - (void)didClickButtonFun:(UIButton*)but
  222. {
  223. NSInteger tag = but.tag;
  224. if(tag == 1){
  225. NSString *serUrl = shareService;
  226. NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
  227. NSURL *URL = [NSURL URLWithString:shareUrl];
  228. [[UIApplication sharedApplication] openURL:URL];
  229. }
  230. else if(tag == 10){
  231. [self showCancelAlearViewFun];
  232. }
  233. else if(tag == 11){
  234. [self copyShareLinkFun];
  235. }
  236. }
  237. - (void)viewWillAppear:(BOOL)animated
  238. {
  239. [super viewWillAppear:animated];
  240. [self handleDataFun];
  241. }
  242. //- (void)setDataModel:(ShareRecordListModel *)dataModel
  243. - (void)handleDataFun
  244. {
  245. //_dataModel = dataModel;
  246. if(!_dataModel.expirationStatus){
  247. _cancelShareLinkButton.hidden = NO;
  248. _shareLinkCopyButton.hidden = NO;
  249. if(_dataModel.expirationDay== 0)
  250. {
  251. NSString *expDateStr = NSLocalizedString(@"share_expiration_date_forever",nil);
  252. _shareEndDateLabel.text = expDateStr;
  253. }
  254. else{
  255. //失效时间
  256. NSString *tipStr = NSLocalizedString(@"copy_share_link_Invalid_tip3",nil);
  257. _shareEndDateLabel.text = [[NSString alloc] initWithFormat:@"%@: %@",tipStr,_dataModel.expirationTime];
  258. }
  259. }
  260. else{
  261. _cancelShareLinkButton.hidden = YES;
  262. _shareLinkCopyButton.hidden = YES;
  263. //失效时间
  264. NSString *tipStr = NSLocalizedString(@"copy_share_link_Invalid_tip3",nil);
  265. NSString *tipStr2 = NSLocalizedString(@"copy_share_link_Invalid_tip",nil);
  266. _shareEndDateLabel.text = [[NSString alloc] initWithFormat:@"%@: %@",tipStr,tipStr2];
  267. }
  268. ShareFileDataModel *fileModel = _dataModel.fileListVOS.firstObject;
  269. NSString *titleStr = [[NSString alloc] initWithFormat:@"%@%@%ld%@",fileModel.fileName,NSLocalizedString(@"share_file_more_tip",nil), _dataModel.fileListVOS.count,NSLocalizedString(@"share_file_Numbers_tip",nil)];
  270. if(_dataModel.fileListVOS.count == 1){
  271. titleStr = fileModel.fileName;
  272. }
  273. _shareTitleLabel.text = titleStr;
  274. _shareBeginDateLabel.text = _dataModel.createTime;
  275. NSString *serUrl = shareService;
  276. NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
  277. _shareQRCodeImageView.image = [self generateQRCodeWithInputMessage:shareUrl Width:168 Height:168];
  278. _extractCodeTip2Lab.text = _dataModel.extractionCode;
  279. if(_dataModel.platformType == 4){
  280. [_whiteBgView mas_remakeConstraints:^(MASConstraintMaker *make) {
  281. make.left.mas_equalTo(15);
  282. make.right.mas_equalTo(-15);
  283. make.top.equalTo(self.navBarBGView.mas_bottom).offset(40.f);
  284. make.height.mas_equalTo(508);
  285. }];
  286. _extractCodeBgView.hidden = NO;
  287. [_shareEndDateLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
  288. make.top.equalTo(_extractCodeBgView.mas_bottom).offset(15.f);
  289. make.left.mas_equalTo(15);
  290. make.right.mas_equalTo(-15);
  291. make.height.mas_equalTo(15);
  292. }];
  293. }
  294. else{
  295. [_whiteBgView mas_remakeConstraints:^(MASConstraintMaker *make) {
  296. make.left.mas_equalTo(15);
  297. make.right.mas_equalTo(-15);
  298. make.top.equalTo(self.navBarBGView.mas_bottom).offset(40.f);
  299. make.height.mas_equalTo(448);
  300. }];
  301. _extractCodeBgView.hidden = YES;
  302. [_shareEndDateLabel mas_remakeConstraints:^(MASConstraintMaker *make) {
  303. make.top.equalTo(_checkShareLinkButton.mas_bottom).offset(15.f);
  304. make.left.mas_equalTo(15);
  305. make.right.mas_equalTo(-15);
  306. make.height.mas_equalTo(15);
  307. }];
  308. }
  309. }
  310. #pragma mark 取消分享
  311. - (void)showCancelAlearViewFun
  312. {
  313. NSString *tipStr = NSLocalizedString(@"cancel_share_Tip_msg",nil);
  314. KWeakSelf
  315. ComontAlretViewController *curAlretVC= [[ComontAlretViewController alloc] initWithTiTle:nil
  316. msg:tipStr
  317. imageStr:nil
  318. cancelTitle:NSLocalizedString(@"other_cancel",nil)
  319. okTitle:NSLocalizedString(@"other_confirm",nil) isOkBtnHighlight:YES
  320. didClickOk:^{
  321. [weakSelf cancelShareLinkFun];
  322. } didClickCancel:^{
  323. }];
  324. curAlretVC.modalPresentationStyle = UIModalPresentationCustom;
  325. [self presentViewController:curAlretVC animated:YES completion:^{
  326. curAlretVC.view.superview.backgroundColor = [UIColor clearColor];
  327. }];
  328. }
  329. - (void)cancelShareLinkFun
  330. {
  331. NSMutableDictionary *paraDict = [NSMutableDictionary new];
  332. if(_dataModel.addShareId){
  333. //[paraDict setValue:_dataModel.addShareId forKey:@"id"];
  334. [paraDict setValue:@[_dataModel.addShareId] forKey:@"idList"];
  335. }
  336. [paraDict setValue:@1 forKey:@"expirationStatus"];
  337. KWeakSelf
  338. [self showNewIndicatorWithCanBack:NO canTouch:NO];
  339. [[netWorkManager shareInstance] CommonPostCallBackCode:updateShareInfoFun Parameters:paraDict success:^(id _Nonnull responseObject) {
  340. [weakSelf removeNewIndicator];
  341. SuperModel *model = [[SuperModel alloc] initWithDictionary:responseObject error:nil];
  342. if(model && model.code == 0){
  343. [[iToast makeText:NSLocalizedString(@"cancel_share_suc_msg",nil)] show];
  344. [weakSelf getShareOneFileListFun];
  345. }
  346. else{
  347. [[iToast makeText:NSLocalizedString(@"cancel_share_fail_msg",nil)] show];
  348. }
  349. } failure:^(NSError * _Nonnull error) {
  350. [weakSelf removeNewIndicator];
  351. [[iToast makeText:NSLocalizedString(@"cancel_share_fail_msg",nil)] show];
  352. }];
  353. }
  354. #pragma mark 分享信息重新获取
  355. - (void)getShareOneFileListFun
  356. {
  357. _dataModel.expirationStatus = 1;
  358. [self handleDataFun];
  359. if(_didCancelShareLinkFun){
  360. _didCancelShareLinkFun();
  361. }
  362. }
  363. - (void)copyShareLinkFun
  364. {
  365. if(_dataModel.fileListVOS.count <=0 ){
  366. return;
  367. }
  368. ShareFileDataModel *dataModel = _dataModel.fileListVOS.firstObject;
  369. NSString *copyStr1 = [[NSString alloc] initWithFormat:@"%@%@%@%ld%@",NSLocalizedString(@"share_secret_titile_1_1",nil),dataModel.fileName,NSLocalizedString(@"share_file_more_tip",nil), _dataModel.fileListVOS.count,NSLocalizedString(@"share_file_Numbers_tip",nil)];
  370. if(_dataModel.fileListVOS.count == 1){
  371. copyStr1 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_1",nil),dataModel.fileName];
  372. }
  373. if(_dataModel.platformType == 4) {
  374. copyStr1 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_1",nil),copyStr1];
  375. }
  376. NSString *serUrl = shareService;
  377. NSString *shareUrl = [[NSString alloc] initWithFormat:@"%@%@",serUrl,_dataModel.token];
  378. NSString *copyStr2 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_2",nil),shareUrl];
  379. NSString *copyStr3 = [[NSString alloc] initWithFormat:@"%@%@",NSLocalizedString(@"share_secret_titile_3",nil),_dataModel.extractionCode];
  380. NSString *copyStr4 = NSLocalizedString(@"share_secret_titile_4",nil);
  381. NSString *copyTotalStr = [[NSString alloc] initWithFormat:@"%@\n%@\n%@\n%@",copyStr1,copyStr2,copyStr3,copyStr4];
  382. if(_dataModel.platformType != 4) {
  383. copyTotalStr = [[NSString alloc] initWithFormat:@"%@\n%@\n%@",copyStr1,copyStr2,copyStr4];
  384. }
  385. UIPasteboard* pasteboard = [UIPasteboard generalPasteboard];
  386. pasteboard.string = copyTotalStr;
  387. [[iToast makeText:NSLocalizedString(@"copy_share_link_suc_tip",nil)] show];
  388. }
  389. @end