Skip to content

simplified NJKScrollFullScreen#33

Open
litt1e-p wants to merge 1 commit intoninjinkun:masterfrom
litt1e-p:master
Open

simplified NJKScrollFullScreen#33
litt1e-p wants to merge 1 commit intoninjinkun:masterfrom
litt1e-p:master

Conversation

@litt1e-p
Copy link
Copy Markdown

@litt1e-p litt1e-p commented Nov 4, 2015

Hi, your NJKScrollFullScreen is great!, I have spend months looking for a simplified lib to hide navBar & tabBar when scroll. it can be much simplified if add an automatic execution to instead of ViewController delegate, I mark the additional code with warning msg place, it will not change the way to use by your README description. I have tested the code I changed, it only need 3 line code to use NJKScrollFullScreen. so may I pull request to you? thx!

@litt1e-p
Copy link
Copy Markdown
Author

litt1e-p commented Nov 4, 2015

in my UITableViewController.m
just add below 4 lines code and NJKScrollFullScreen work well:
self.edgesForExtendedLayout = UIRectEdgeAll;
self.extendedLayoutIncludesOpaqueBars = YES;
_scrollProxy = [[NJKScrollFullScreen alloc] initWithForwardTarget:self];
self.tableView.delegate = (id)_scrollProxy;

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.

1 participant