File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,9 @@ - (BOOL)shouldAutomaticallyForwardRotationMethods {
200
200
}
201
201
202
202
- (UIStoryboardSegue *)segueForUnwindingToViewController : (UIViewController *)toViewController fromViewController : (UIViewController *)fromViewController identifier : (NSString *)identifier {
203
+ if (!([self .underLeftViewController isMemberOfClass: [toViewController class ]] || [self .underRightViewController isMemberOfClass: [toViewController class ]])) {
204
+ return [super segueForUnwindingToViewController: toViewController fromViewController: fromViewController identifier: identifier];
205
+ }
203
206
ECSlidingSegue *unwindSegue = [[ECSlidingSegue alloc ] initWithIdentifier: identifier source: fromViewController destination: toViewController];
204
207
[unwindSegue setValue: @YES forKey: @" isUnwinding" ];
205
208
return unwindSegue;
You can’t perform that action at this time.
0 commit comments