Commit 4a4ba4ae authored by 汪洋's avatar 汪洋

删除没有用的代码

parent 7358fa97
...@@ -9,7 +9,5 @@ ...@@ -9,7 +9,5 @@
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
@interface GMNavigationController : UINavigationController @interface GMNavigationController : UINavigationController
// TODO: wangyang 这个属性的历史需要找人了解清楚,缺少对应的注释
@property (nonatomic, assign) BOOL needPopPresetAnimation;
@end @end
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
id<GMControllerAnimatedTransitioning> animation = controller.navigationAnimation; id<GMControllerAnimatedTransitioning> animation = controller.navigationAnimation;
animation.transitionType = operation; animation.transitionType = operation;
return animation; return animation;
} else if (operation == UINavigationControllerOperationPop && ([fromVC conformsToProtocol:@protocol(GMCustomNavigationAnimationProtocol)] || self.needPopPresetAnimation)) { } else if (operation == UINavigationControllerOperationPop && [fromVC conformsToProtocol:@protocol(GMCustomNavigationAnimationProtocol)] ) {
id<GMCustomNavigationAnimationProtocol> controller = (id<GMCustomNavigationAnimationProtocol>)fromVC; id<GMCustomNavigationAnimationProtocol> controller = (id<GMCustomNavigationAnimationProtocol>)fromVC;
id<GMControllerAnimatedTransitioning> animation = controller.navigationAnimation; id<GMControllerAnimatedTransitioning> animation = controller.navigationAnimation;
animation.transitionType = operation; animation.transitionType = operation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment