AboutUsBodyView.m 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // AboutUsBodyView.m
  3. // KulexiuForTeacher
  4. //
  5. // Created by Kyle on 2022/3/22.
  6. //
  7. #import "AboutUsBodyView.h"
  8. @interface AboutUsBodyView ()
  9. @property (weak, nonatomic) IBOutlet UILabel *versionLabel;
  10. @property (weak, nonatomic) IBOutlet UILabel *phoneLabel;
  11. @property (weak, nonatomic) IBOutlet UILabel *emailLabel;
  12. @end
  13. @implementation AboutUsBodyView
  14. - (void)awakeFromNib {
  15. [super awakeFromNib];
  16. self.versionLabel.text = [NSString stringWithFormat:@"版本号%@",[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"]];
  17. self.phoneLabel.text = @"4008851569";
  18. self.emailLabel.text = @"753761527@qq.com";
  19. }
  20. + (instancetype)shareInstance {
  21. AboutUsBodyView *view = [[[NSBundle mainBundle] loadNibNamed:@"AboutUsBodyView" owner:nil options:nil] firstObject];
  22. return view;
  23. }
  24. /*
  25. // Only override drawRect: if you perform custom drawing.
  26. // An empty implementation adversely affects performance during animation.
  27. - (void)drawRect:(CGRect)rect {
  28. // Drawing code
  29. }
  30. */
  31. @end