JXRegisterShowView.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. //
  2. // JXRegisterShowView.h
  3. // shiku_im
  4. //
  5. // Created by 123 on 2020/5/18.
  6. // Copyright © 2020 Reese. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface JXRegisterShowView : UIView
  11. @property (nonatomic,weak) UITextView *textView;
  12. +(void)showView;
  13. @property (nonatomic,weak) UIButton *tongYiBtn;
  14. +(void)closeView;
  15. @property (nonatomic,strong) NSDictionary *dataDict;
  16. @end
  17. NS_ASSUME_NONNULL_END
  18. /***
  19. UILabel *conteL=[[UILabel alloc]init];
  20. conteL.font=[UIFont systemFontOfSize:16 weight:UIFontWeightMedium];
  21. conteL.textColor=kRGBColor(141, 141, 141);
  22. NSString *titStr =@"欢迎登陆即信!我们依据最新的监管要求更新了即信《用户协议》和《隐私政策》,特向您说明如下:\n\n1.为了帮助您发现更多有趣的内容,会根据您的使用习惯推荐更好的瞬间;\n\n 2.基于您的授权,我们可能会获取您的位置等信息,您可以选择拒绝或取消授权;\n\n 3.您可灵活设置发布瞬间的可见范围和互动权限;\n\n 4.未经您同意,我们不会从第三方获";
  23. conteL.numberOfLines=0;
  24. [whiteShowView addSubview:conteL];
  25. [conteL mas_makeConstraints:^(MASConstraintMaker *make) {
  26. make.top.mas_equalTo(titleL.mas_bottom).mas_equalTo(20);
  27. make.left.mas_equalTo(30);
  28. make.right.mas_equalTo(-30);
  29. }];
  30. NSMutableAttributedString *hintString1=[[NSMutableAttributedString alloc]initWithString:[NSString stringWithFormat:@"%@",titStr]];
  31. NSRange range1=[[hintString1 string]rangeOfString:@"《用户协议》"];
  32. [hintString1 addAttribute:NSForegroundColorAttributeName value:kRGBColor(227, 89, 89) range:range1];
  33. NSRange range2=[[hintString1 string]rangeOfString:@"《隐私政策》"];
  34. [hintString1 addAttribute:NSForegroundColorAttributeName value:kRGBColor(227, 89, 89) range:range2];
  35. conteL.attributedText = hintString1;
  36. */