Skip to content

Fix Navbar will not hide completely when scroll direction changed & bottomBoundary not count correctly#7

Open
xuzhe wants to merge 7 commits intoninjinkun:masterfrom
xuzhe:master
Open

Fix Navbar will not hide completely when scroll direction changed & bottomBoundary not count correctly#7
xuzhe wants to merge 7 commits intoninjinkun:masterfrom
xuzhe:master

Conversation

@xuzhe
Copy link
Copy Markdown
Contributor

@xuzhe xuzhe commented Jan 23, 2014

No description provided.

@xuzhe
Copy link
Copy Markdown
Contributor Author

xuzhe commented Jan 23, 2014

Also added any subview of UINavigationBar support (not just customized title view).

@ninjinkun
Copy link
Copy Markdown
Owner

Thanks. I will review it on this weekend.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why you added this interface. I prefer less interface. Please tell me usable situation.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The interface is notifying the receiver that the user is scrolling to the bottom of UIScrollview.

If you have a toolbar at the bottom and hiding it, the delegate will give you a chance to show the toolbar.

The code to use the interface should like this:
- (void)scrollFullScreen:(NJKScrollFullScreen *)proxy scrollViewOverBottomBarTopBoundary:(CGFloat)deltaY { [self moveNavigtionBar:deltaY animated:YES]; [self moveToolbar:-deltaY animated:YES]; // move to revese direction [self updateToolbarItems]; // Workaround iOS 7's bug: sometime the toolbar items will not be displayed }

@ninjinkun
Copy link
Copy Markdown
Owner

@xuzhe I reviewed. Your pull request is almost looks good. Please reply to my comments.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You broke my indent. Please fix.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, Xcode did this for me. I will fix it manually.

This was referenced Feb 4, 2014
@ninjinkun
Copy link
Copy Markdown
Owner

@xuzhe If you are busy, I'll merge and fix it by myself. I'm waiting for your reply.

@xuzhe
Copy link
Copy Markdown
Contributor Author

xuzhe commented Feb 17, 2014

I am sorry for the delay in replying. It seems I am not getting Github's notification emails.
I've replayed your comments and pushed a new commit to remove meaningless white spaces, etc.

If there are still any problems, please let me know.
Thanks.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you change default? It may confuse previous default users.

@ninjinkun
Copy link
Copy Markdown
Owner

@xuzhe After re-review, I found problem #7 (comment) .
I want to merge 7334d7f. But other commits need discussion.
If you OK, I will cherry pick 7334d7f.

@xuzhe
Copy link
Copy Markdown
Contributor Author

xuzhe commented Feb 20, 2014

I am OK, do whatever you want 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants