RZToolbar 0.1.3

RZToolbar 0.1.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Mar 2017

Maintained by Rookie Zn.



RZToolbar 0.1.3

  • By
  • RookieZn

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

RZToolbar is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "RZToolbar"

Usage

_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]];

Author

RookieZn, [email protected]

License

RZToolbar is available under the MIT license. See the LICENSE file for more info.