ninjinkun / njkscrollfullscreen Goto Github PK
View Code? Open in Web Editor NEWScroll to full screen like Facebook app
License: MIT License
Scroll to full screen like Facebook app
License: MIT License
When I add a view with Constraint upon toolbar,it cannot hide and show along with the toolbar;Can you give me some tips? Thanks!
Currently custom title view for uinavigationbar is not supported for the fading effect.
Hi,
i try to use it on uitableview inside uiviewcontroller with auto layout it's didn't work any advice for this case please
My Problem is: I set contentInset of my scrollView instance and isOverBottomBoundary never become true.
NJKScrollDirection currentScrollDirection = detectScrollDirection(currentOffsetY, _previousOffsetY);
CGFloat topBoundary = -scrollView.contentInset.top;
CGFloat bottomBoundary = scrollView.contentSize.height + scrollView.contentInset.bottom;
Do I need to consider the height of ScrollView?
uitableview delegate methods are not getting called after setting tableview delegate to scroll proxy.
e.g.
In the demo project after calling
[self.tableView reloadData];
I thought that there is something wrong with method forwarding implementation.
But by calling
[((UITableViewController <UITableViewDelegate>*)(self.tableView.delegate)) tableView:self.tableView heightForHeaderInSection:0];
instead of reloading tableview that method is forwarded correctly. Hence i can confirm that method forwarding is working.
It might be that uitableview has it's own delegate check mechanism internally and ignores to call delegate methods with current implementation. It sees an object conforming to UIScrollViewDelegate but not UITableViewDelegate.
I use a custom font in my nav bar - [[UINavigationBar appearance] setTitleTextAttributes:navTitleAttributes];
.
The font seems to be reset to the default when the nav bar comes back.
I find a spelling mistake: NJKScrollFullScreen is written to NJKScrollFullSreen!
Add this code to your viewController
UIViewController+NJKFullScreenSupport.m
showTabBar, hideTabBar, and moveTabBar all call setToolbarOriginY which is presumably a copy & paste error since they should be calling setTabBarOriginY.
Hi,
just tested the last official commit made on the main branch 4 days ago.
The same problems for the NavBar after device rotation exists.
1st Problem
Steps to reproduce:
Expected:
Seeing the UINavigationBar and it's UIBarButtonItems again
Result:
NavBar is visible again (as wanted), but the UIBarButtonItems are hidden.
2nd Problem
Steps to reproduce:
Result:
The UIBarButtonItems appear again. But their color changed to yellow instead of white (white is expected and previously set). Like mentioned here before: #8 (comment)
Related Code:
In UIViewController+NJKFullScreenSupport.m, in (void)setNavigationBarOriginY:(CGFloat)y animated:(BOOL)animated.
Commenting out setting the tintColor removes the Yellow coloring after the button return. The 1st problem seems to be related to view.alpha restoration. You are restoring the Bar's alpha but not of the Buttons..
for (UIView *view in self.navigationController.navigationBar.subviews) {
index++;
if (index == 1 || view.hidden || view.alpha <= 0.0f) continue; // this logic is somehow broken
view.alpha = alpha;
}
if (NJK_IS_RUNNING_IOS7) { // following leads to yellow buttons
// fade bar buttons
UIColor *tintColor = self.navigationController.navigationBar.tintColor;
if (tintColor) {
CGFloat *components = (CGFloat *)CGColorGetComponents(tintColor.CGColor);
self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:components[0] green:components[1] blue:components[2] alpha:alpha];
}
}
Cheers,
Frederik
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.