RZToolbar 0.1.3

RZToolbar 0.1.3

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2017年3月

Rookie Zn维护。



RZToolbar 0.1.3

  • 作者:
  • RookieZn

示例

要运行示例项目,请先克隆仓库,然后从Example目录运行pod install

需求

安装

RZToolbar可以通过CocoaPods获取。要安装它,只需在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在MIT许可证下可用。更多信息请参阅LICENSE文件。