MyUserIconVC.m 859 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // MyUserIconVC.m
  3. // smartRhino
  4. //
  5. // Created by niuzhen on 2020/2/26.
  6. // Copyright © 2020 tederen. All rights reserved.
  7. //
  8. #import "MyUserIconVC.h"
  9. @interface MyUserIconVC ()
  10. @property (weak, nonatomic) IBOutlet UIImageView *iconView;
  11. @end
  12. @implementation MyUserIconVC
  13. +(MyUserIconVC *)initMyUserIconVC{
  14. MyUserIconVC *controller = [StoryboardManager.shared.myCenter instantiateViewControllerWithIdentifier:@"MyUserIconVC"];
  15. return controller;
  16. }
  17. - (void)viewDidLoad {
  18. [super viewDidLoad];
  19. self.fd_prefersNavigationBarHidden = YES;
  20. self.view.backgroundColor = UIColorHex(0x000000);
  21. NSString * urlString = [AppUserModel sharedAppUserModel].AvatarUrl;
  22. NSString *strUrl = [urlString stringByReplacingOccurrencesOfString:@"_50_50" withString:@""];
  23. [self.iconView sd_setImageWithURL:[NSURL URLWithString:strUrl]];
  24. }
  25. @end