08 July 2015

原文:


http://www.cocoachina.com/bbs/read.php?tid=230841

自己自定义一个Dismiss的UIStoryboardSegue类

#import "Dismiss.h"

@implementation Dismiss - (void)perform { UIViewController *sourceViewController = self.sourceViewController; [sourceViewController.presentingViewController dismissViewControllerAnimated:YES completion:nil]; } @end

然后,链接的时候直接选择dismiss

1.png



blog comments powered by Disqus