新建類 注意繼承關係
#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