Skip to content

Commit

Permalink
Merge pull request #25 from ninjinkun/compatible-for-typo
Browse files Browse the repository at this point in the history
Add compatible method for typo fixed
  • Loading branch information
ninjinkun committed Nov 6, 2014
2 parents 793cbe9 + 1108079 commit f9700ce
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions NJKScrollFullScreen/UIViewController+NJKFullScreenSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@
- (void)setTabBarOriginY:(CGFloat)y animated:(BOOL)animated;

@end

// Compatible method for typo fixed (https://github.com/ninjinkun/NJKScrollFullScreen/pull/23)
@interface UIViewController (NJKFullScreenSupportDeprecated)

- (void)moveNavigtionBar:(CGFloat)deltaY animated:(BOOL)animated __deprecated_msg("Use `moveNavigationBar:animated:`");

@end
10 changes: 10 additions & 0 deletions NJKScrollFullScreen/UIViewController+NJKFullScreenSupport.m
Original file line number Diff line number Diff line change
Expand Up @@ -195,3 +195,13 @@ - (CGFloat)tabBarViewControlleViewHeightFromViewSize:(CGSize)viewSize{
}

@end

@implementation UIViewController (NJKFullScreenSupportDeprecated)

- (void)moveNavigtionBar:(CGFloat)deltaY animated:(BOOL)animated
{
[self moveNavigationBar:deltaY animated:animated];
}

@end

0 comments on commit f9700ce

Please sign in to comment.