devxoul / uinavigationitem-margin Goto Github PK
View Code? Open in Web Editor NEWMargins for UINavigationItem
License: MIT License
Margins for UINavigationItem
License: MIT License
I set rightBarButtonItem with storyboard. then set self.navigationController.navigationItem.rightMargin = 0;
in viewController ,but it's useless.What's wrong?pls.
Setting custom margin to 0 does not remove system margin.
UIBarButtonItem* right =
[[UIBarButtonItem alloc] initWithTitle:@"test11111"
style:UIBarButtonItemStyleDone
target:self
action:nil];
self.navigationItem.rightBarButtonItem = right;
self.navigationItem.rightBarButtonItem = nil;
NSLog(@"rightBarButtonItems:%@", self.navigationItem.rightBarButtonItem);
2017-04-01 14:01:55.523 wq[9992:1889340] rightBarButtonItems:<UIBarButtonItem: 0x12462ac30>
self.navigationItem.rightBarButtonItem = nil not work?
Don't support system NavigationItem? Set up the system of NavigationItem, doesn't work。
If set the UIBarButtonItem from the code and nothing set up, the layout will collapse.
I prepared a sample project, so please refer
https://github.com/Econa77/UINavigationItem-Margin-Example
how to modify items margin in iOS11?
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.