VideoManager+view.m 768 B

123456789101112131415161718192021222324252627282930
  1. //
  2. // VideoManager+view.m
  3. // SikeyComm
  4. //
  5. // Created by 刘振兴 on 2025/2/18.
  6. // Copyright © 2025 BaH Cy. All rights reserved.
  7. //
  8. #import "VideoManager+view.h"
  9. @implementation VideoManager (view)
  10. - (void)showInCallVC {
  11. if (self.mInCallVC)
  12. return;
  13. NSLog(@"VideoManager: showInCallVC");
  14. UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
  15. self.mInCallVC = [storyboard instantiateViewControllerWithIdentifier:@"InCallVC"];
  16. [self.mInCallVC setHidesBottomBarWhenPushed:YES];
  17. [EUtil pushViewController:self.mInCallVC animated:YES];
  18. }
  19. - (void)removeInCallVC {
  20. if (self.mInCallVC) {
  21. [self.mInCallVC.navigationController popViewControllerAnimated:YES];
  22. }
  23. self.mInCallVC = nil;
  24. }
  25. @end