Skip to content

Commit

Permalink
Add compatible method for typo fixed (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjinkun committed Nov 6, 2014
1 parent 793cbe9 commit e5c9b05
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions NJKScrollFullScreen/UIViewController+NJKFullScreenSupport.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,8 @@
- (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 e5c9b05

Please sign in to comment.