Skip to content

Commit

Permalink
Merge pull request #23 from fumiya-kubota/master
Browse files Browse the repository at this point in the history
fix typo `moveNavigtionBar` => `moveNavigationBar`
  • Loading branch information
ninjinkun committed Nov 5, 2014
2 parents 5f0f164 + 0a29460 commit 793cbe9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions DemoApp/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -123,13 +123,13 @@ -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NS

- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewDidScrollUp:(CGFloat)deltaY
{
[self moveNavigtionBar:deltaY animated:YES];
[self moveNavigationBar:deltaY animated:YES];
[self moveToolbar:-deltaY animated:YES]; // move to revese direction
}

- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewDidScrollDown:(CGFloat)deltaY
{
[self moveNavigtionBar:deltaY animated:YES];
[self moveNavigationBar:deltaY animated:YES];
[self moveToolbar:-deltaY animated:YES];
}

Expand Down
4 changes: 2 additions & 2 deletions DemoApp/WebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ - (void)viewDidLoad

- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewDidScrollUp:(CGFloat)deltaY
{
[self moveNavigtionBar:deltaY animated:YES];
[self moveNavigationBar:deltaY animated:YES];
[self moveToolbar:-deltaY animated:YES]; // move to revese direction
}

- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewDidScrollDown:(CGFloat)deltaY
{
[self moveNavigtionBar:deltaY animated:YES];
[self moveNavigationBar:deltaY animated:YES];
[self moveToolbar:-deltaY animated:YES];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

- (void)showNavigationBar:(BOOL)animated;
- (void)hideNavigationBar:(BOOL)animated;
- (void)moveNavigtionBar:(CGFloat)deltaY animated:(BOOL)animated;
- (void)moveNavigationBar:(CGFloat)deltaY animated:(BOOL)animated;
- (void)setNavigationBarOriginY:(CGFloat)y animated:(BOOL)animated;

- (void)showToolbar:(BOOL)animated;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ - (void)hideNavigationBar:(BOOL)animated
[self setNavigationBarOriginY:top animated:animated];
}

- (void)moveNavigtionBar:(CGFloat)deltaY animated:(BOOL)animated
- (void)moveNavigationBar:(CGFloat)deltaY animated:(BOOL)animated
{
CGRect frame = self.navigationController.navigationBar.frame;
CGFloat nextY = frame.origin.y + deltaY;
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ Instance and set `UIScrollViewDelegate` on your view controller. If you set `scr
```objc
- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewDidScrollUp:(CGFloat)deltaY
{
[self moveNavigtionBar:deltaY animated:YES];
[self moveNavigationBar:deltaY animated:YES];
}

- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewDidScrollDown:(CGFloat)deltaY
{
[self moveNavigtionBar:deltaY animated:YES];
[self moveNavigationBar:deltaY animated:YES];
}

- (void)scrollFullScreenScrollViewDidEndDraggingScrollUp:(NJKScrollFullScreen *)proxy
Expand Down Expand Up @@ -87,7 +87,7 @@ Or you can implement own full screen behavior like below.
[self setNavigationBarOriginY:0 animated:animated];
}

- (void)moveNavigtionBar:(CGFloat)deltaY animated:(BOOL)animated
- (void)moveNavigationBar:(CGFloat)deltaY animated:(BOOL)animated
{
CGRect frame = self.navigationController.navigationBar.frame;
CGFloat nextY = frame.origin.y + deltaY;
Expand Down

0 comments on commit 793cbe9

Please sign in to comment.