2
0

WFPttJoinChannelViewController.m 812 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // WFPttJoinChannelViewController.m
  3. // PttUIKit
  4. //
  5. // Created by Hao Jia on 2021/10/14.
  6. //
  7. #ifdef WFC_PTT
  8. #import "WFPttJoinChannelViewController.h"
  9. @interface WFPttJoinChannelViewController ()
  10. @end
  11. @implementation WFPttJoinChannelViewController
  12. - (void)viewDidLoad {
  13. [super viewDidLoad];
  14. self.view.backgroundColor = [UIColor whiteColor];
  15. self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonItemStylePlain target:self action:@selector(dismiss:)];
  16. }
  17. - (void)dismiss:(id)sender {
  18. if (self.navigationController.presentingViewController) {
  19. [self.navigationController dismissViewControllerAnimated:YES completion:nil];
  20. }else{
  21. [self.navigationController popViewControllerAnimated:YES];
  22. }
  23. }
  24. @end
  25. #endif //WFC_PTT