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

删除没有用的代码

parent 7358fa97
......@@ -9,7 +9,5 @@
#import <UIKit/UIKit.h>
@interface GMNavigationController : UINavigationController
// TODO: wangyang 这个属性的历史需要找人了解清楚,缺少对应的注释
@property (nonatomic, assign) BOOL needPopPresetAnimation;
@end
......@@ -34,7 +34,7 @@
id<GMControllerAnimatedTransitioning> animation = controller.navigationAnimation;
animation.transitionType = operation;
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<GMControllerAnimatedTransitioning> animation = controller.navigationAnimation;
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