BDFaceLogoView.m 818 B

123456789101112131415161718192021222324252627
  1. //
  2. // BDFaceLogoView.m
  3. // FaceSDKSample_IOS
  4. //
  5. // Created by 孙明喆 on 2020/3/12.
  6. // Copyright © 2020 Baidu. All rights reserved.
  7. //
  8. #import "BDFaceLogoView.h"
  9. @implementation BDFaceLogoView
  10. - (instancetype)initWithFrame:(CGRect)frame {
  11. self = [super initWithFrame:frame];
  12. if (self) {
  13. UILabel *logoLabel = [[UILabel alloc] init];
  14. logoLabel.frame = CGRectMake(0, 0, frame.size.width, frame.size.height);
  15. logoLabel.text = @"— 百度大脑技术支持 —";
  16. logoLabel.font = [UIFont fontWithName:@"PingFangSC-Regular" size:12];
  17. logoLabel.textColor = [UIColor colorWithRed:204 / 255.0 green:204 / 255.0 blue:204 / 255.0 alpha:1 / 1.0];
  18. logoLabel.textAlignment = NSTextAlignmentCenter;
  19. [self addSubview:logoLabel];
  20. }
  21. return self;
  22. }
  23. @end