Unwind with more than 1 segue using iOS 7 UIViewController transition animations

一曲冷凌霜 提交于 2019-11-30 22:11:28

You need to make custom segue classes for each type of transition you wish to apply

#import <UIKit/UIKit.h>

@interface CustomSegue : UIStoryboardSegue

@end


@implementation CustomSegue

 -(void)perform {

 // write your transition code here
 // this code will be called every time transition is made

}

Select a segue in storybord - in inspector change its type to custom - select custom class you have made in above case "CustomSegue"

If you have subclassed it properly then you will find inspector as below

Unwind as usual but will get the same effect even if you have poped from 4th controller to 1st controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!