TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Mar 2017 |
Maintained by Rookie Zn.
To run the example project, clone the repo, and run pod install
from the Example directory first.
RZToolbar is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RZToolbar"
_toolbar = [[RZToolbar alloc] initWithFrame:CGRectMake(0, self.view.bounds.size.height - BAR_HEIGHT, self.view.bounds.size.width, BAR_HEIGHT)];
NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:14], NSForegroundColorAttributeName: [UIColor blueColor]};
NSAttributedString *attrString = [[NSAttributedString alloc] initWithString:@"Foo" attributes:attributes];
RZBarButtonItem *fooBarItem = [[RZBarButtonItem alloc] initWithAttributedTitle:attrString target:nil action:nil];
RZBarButtonItem *spaceBarItem = [[RZBarButtonItem alloc] initWithSpaceFlexible:YES];
[_toolbar setItems:@[fooBarItem, spaceBarItem]];
RookieZn, [email protected]
RZToolbar is available under the MIT license. See the LICENSE file for more info.