Skip to content

Commit

Permalink
Remove compile warning and bumping version to 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
molon authored and molon committed Dec 1, 2016
1 parent a81d272 commit 2ddb2f5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Classes/UINavigationBar+MLNavigationBarTransition.m
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ - (UIView*)ml_backIndicatorView {
}

- (UILabel*)ml_backButtonLabel {
UINavigationItem *backItem = self.backItem;

UILabel *label = nil;
@try {
UIView *backButtonView = [self.backItem valueForKey:@"_backButtonView"];
Expand Down
6 changes: 6 additions & 0 deletions Classes/UINavigationController+MLNavigationBarTransition.m
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ + (void)load {
BOOL valid = mlnbt_exchangeInstanceMethod(self, @selector(setNavigationBarHidden:), @selector(_mlnbt_setNavigationBarHidden:))&&
mlnbt_exchangeInstanceMethod(self, @selector(setNavigationBarHidden:animated:), @selector(_mlnbt_setNavigationBarHidden:animated:))&&
mlnbt_exchangeInstanceMethod(self, @selector(_startCustomTransition:), @selector(_mlnbt_startCustomTransition:));
if (!valid) {
NSLog(@"UINavigationController (MLNavigationBarTransition) is not valid now! Please check it.");
}
NSAssert(valid, @"UINavigationController (MLNavigationBarTransition) is not valid now! Please check it.");
#pragma clang diagnostic pop
});
Expand Down Expand Up @@ -118,6 +121,9 @@ + (void)load {

BOOL valid = mlnbt_exchangeInstanceMethod(cls,@selector(animateTransition:),@selector(_mlnbt_animateTransition:))&&
mlnbt_exchangeInstanceMethod(cls,@selector(animationEnded:),@selector(_mlnbt_animationEnded:));
if (!valid) {
NSLog(@"NSObject(MLNavigationBarTransition) is not valid now! Please check it.");
}
NSAssert(valid, @"NSObject(MLNavigationBarTransition) is not valid now! Please check it.");
});
}
Expand Down
2 changes: 1 addition & 1 deletion MLNavigationBarTransition.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MLNavigationBarTransition"
s.version = "0.0.1"
s.version = "0.0.2"
s.summary = "Advanced navigation bar transition based on official push-pop transition"

s.homepage = 'https://github.com/molon/MLNavigationBarTransition'
Expand Down

0 comments on commit 2ddb2f5

Please sign in to comment.