KSLiveWebViewController.m 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. //
  2. // KSLiveWebViewController.m
  3. // KulexiuForStudent
  4. //
  5. // Created by 王智 on 2022/6/10.
  6. //
  7. #import "KSLiveWebViewController.h"
  8. @interface KSLiveWebViewController ()
  9. @end
  10. @implementation KSLiveWebViewController
  11. - (void)viewDidLoad {
  12. [super viewDidLoad];
  13. // Do any additional setup after loading the view.
  14. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(liveroomClose) name:@"LiveroomClose" object:nil];
  15. }
  16. - (void)liveroomClose {
  17. [self MBPShow:@"直播已结束"];
  18. // [self.navigationController popToRootViewControllerAnimated:YES];
  19. }
  20. - (void)viewWillAppear:(BOOL)animated {
  21. [super viewWillAppear:animated];
  22. self.navigationController.interactivePopGestureRecognizer.enabled = NO;
  23. }
  24. - (void)viewWillDisappear:(BOOL)animated {
  25. [super viewWillDisappear:animated];
  26. self.navigationController.interactivePopGestureRecognizer.enabled = YES;
  27. }
  28. /*
  29. #pragma mark - Navigation
  30. // In a storyboard-based application, you will often want to do a little preparation before navigation
  31. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
  32. // Get the new view controller using [segue destinationViewController].
  33. // Pass the selected object to the new view controller.
  34. }
  35. */
  36. @end