GKKit
- 使用下拉刷新的简单方法
- 收集了许多有用的类别。
- 使用Tab UI的简单方法
- 使用导航的简单方法
- 收集了许多有用的视图。
代码解析基础 --> GKBaseUIController,GKBaseTableViewController,GKTabbar以及一些有用的类别。GKResource.bundle -->将所有资源放入此包。Utils -->一些工具类 View -->自定义视图,如Toast
示例项目
self.tabNormalImages=@[@"one",@"two",@"",@"three",@"four"];
self.tabSelectedImages=@[@"one_selected",@"two_selected",@"",@"three_selected",@"four_selected"];
self.tabTexts=@[LSTR(@"tab_one_title"),LSTR(@"tab_two_title"),LSTR(@""),LSTR(@"tab_three_title"),LSTR(@"tab_four_title")];
[self initTabWithVC:vc];
//
[self addCenterButtonWithBlock:^(id sender, id obj) {
debugLog(@".... click...");
}];
添加tabbar普通列表图标和选中列表图标,如果要在其中添加按钮,
self.hasPullToRefresh=true; //show pull refresh action
self.hasLoadMore=true;//show load more action
self.isGifHeader=true; //show gif animation
//loadMore will callback
-(void)loadMore{
debugLog(@"LoadMore...");
}
//pull to refresh will call back.
-(void)pullToRefresh{
debugLog(@"pull to referesh..");
dispatch_after(dispatch_time_delay(2), dispatch_get_main_queue(), ^{
[self headerEndFrefreshing];
});
}
安装
CocoaPods
- 将pod 'GKKit'添加到您的Podfile中
- 运行pod install或pod update。
- 导入 <GKKit/GKKit.h>
手动
- 下载'GKKit'子目录中的所有文件。
- 将源文件添加到您的Xcode项目中。
- 导入 <GKKit/GKKit.h>
许可证
本软件库基于MIT许可证提供。请查看LICENSE文件以获取详细信息。
如果您喜欢它,请点击星按钮。谢谢!