drummerb / bfnavigationbardrawer Goto Github PK
View Code? Open in Web Editor NEWA UIToolbar subclass that can easily be displayed below a UINavigationBar, similarly to the playlist view in the Music app.
License: Other
A UIToolbar subclass that can easily be displayed below a UINavigationBar, similarly to the playlist view in the Music app.
License: Other
If you call this method twice after having set a scrollView
:
self.toolbar.scrollView = self.collectionView;
...
[self.toolbar showFromNavigationBar:self.navigationController.navigationBar animated:NO];
[self.toolbar showFromNavigationBar:self.navigationController.navigationBar animated:NO];
The contentInset
continues to be padded from the top multiple times.
I expect the toolbar to remember its showing state for the nominated navigationBar. (Or, indeed, know what bar it was previously shown from as well) It should not augment the contentInset
multiple times.
Thanks for BFNavigationBarDrawer
โ it's probably saved me hours of trying to get a toolbar attached to the navigation bar.
When the toolbar is shown in either landscape or portrait orientations, it's fine.
However, when you rotate the device 90 degrees, it's obvious that the toolbar remains oblivious.
In particular, I have a segmented control placed bang in the middle of the toolbar so it's very obvious that the toolbar has not reacted to the new orientation.
My workaround for this is something like the following:
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {
[super didRotateFromInterfaceOrientation:fromInterfaceOrientation];
//
[self.toolbar hideAnimated:NO];
[self.toolbar showFromNavigationBar:self.navigationController.navigationBar animated:NO];
}
It's not perfect: you see the segmented control 'jumping' into its correct position this way.
I expect the toolbar to react naturally to bounds changes like the one caused by a device rotation.
Hello,
thank you for this solution.
Can you provide a the configuration, so when the drawer is scrolling down not to push the tableview scroller(like the "Without scroll view adjustment" in your image)?
Thanks in advance
Hello,
It's not possible to add a UISearchbar into the drawer, which is what I want to do. Any recommendations on how to achieve this?
Thanks!
The NavigationBarDrawer stay blank. Do you know what is the problem? Do you have a fix for that?
It's useful to check whether the toolbar is currently shown.
What's the best way of doing this?
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.