PerfectInfoPopView.m 947 B

123456789101112131415161718192021222324252627282930313233343536
  1. //
  2. // PerfectInfoPopView.m
  3. // BuguLive
  4. //
  5. // Created by Mac on 2021/9/23.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import "PerfectInfoPopView.h"
  9. @interface PerfectInfoPopView ()
  10. @property (weak, nonatomic) IBOutlet UILabel *contentLabel;
  11. @end
  12. @implementation PerfectInfoPopView
  13. - (void)awakeFromNib{
  14. [super awakeFromNib];
  15. self.frame = CGRectMake(0, kScreenH, kScreenW, 157 + FD_Bottom_SafeArea_Height);
  16. self.contentLabel.text = [NSString stringWithFormat:ASLocalizedString(@"已为您自动匹配昵称“%@”和默认头像是否修改?"),[GlobalVariables sharedInstance].userModel.nick_name];
  17. }
  18. - (IBAction)closeBtnAction:(UIButton *)sender {
  19. [self hide];
  20. }
  21. - (IBAction)editBtnAction:(UIButton *)sender {
  22. [self hide];
  23. if (self.delegate && [self.delegate respondsToSelector:@selector(infoPopView:didClickEditBtn:)]) {
  24. [self.delegate infoPopView:self didClickEditBtn:sender];
  25. }
  26. }
  27. @end