MORulesWebBaseVC.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // MORulesWebBaseVC.m
  3. // MiMoLive
  4. //
  5. // Created by SuperC on 2025/9/11.
  6. //
  7. #import "MORulesWebBaseVC.h"
  8. #import "MOWebBaseView.h"
  9. @interface MORulesWebBaseVC ()
  10. @property (nonatomic, strong) MOWebBaseView *webView;
  11. @end
  12. @implementation MORulesWebBaseVC
  13. - (void)viewWillAppear:(BOOL)animated
  14. {
  15. [super viewWillAppear:animated];
  16. [self.navigationController setNavigationBarHidden:NO animated:animated];
  17. [self mo_v2_setNavLeftItemWithImage:[UIImage imageNamed:@"v_2_icon_new_back_black"] andBackgroundImg:nil AndBgColor:[UIColor whiteColor]];
  18. }
  19. - (void)viewDidLoad {
  20. [super viewDidLoad];
  21. // Do any additional setup after loading the view.
  22. self.navigationItem.title = NSLocalString(@"C60017");
  23. [self setupUI];
  24. self.webView.webUrl = [NSURL URLWithString:self.urlStr];
  25. [self.webView toLoadTheUrl];
  26. }
  27. - (void)setupUI{
  28. [self.view addSubview:self.webView];
  29. [self.webView mas_makeConstraints:^(MASConstraintMaker *make) {
  30. make.top.equalTo(self.view).offset(0.0);
  31. make.left.bottom.right.equalTo(self.view);
  32. }];
  33. }
  34. - (MOWebBaseView *)webView{
  35. if(!_webView){
  36. _webView = [[MOWebBaseView alloc] init];
  37. }
  38. return _webView;
  39. }
  40. @end