新建类 注意继承关系

#import <UIKit/UIKit.h>

@interface CustomPopIt : UIStoryboardSegue

@end
#import "CustomPopIt.h"

@implementation CustomPopIt

#pragma mark - 实现 pop 方法
- (void)perform
{
    UIViewController *vc = self.sourceViewController;
    [vc.navigationController popViewControllerAnimated:YES];

}

@end

相关文章:

  • 2021-10-25
  • 2022-01-26
  • 2022-12-23
  • 2021-04-27
  • 2022-02-03
  • 2021-12-30
  • 2021-08-03
  • 2022-03-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
  • 2021-11-11
相关资源
相似解决方案