UI_storyboard实现页面回调

新建类 注意继承关系

#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

你可能感兴趣的:(UI,回调,继承关系,storyboard)