###GKKit
- An easy way to use pull-to-refresh
- Collect a lot of useful Category.
- An easy way to use Tab UI
- An easy way to use Navigation
- Collect a lot of useful view.
Code Parsing Base -->GKBaseUIController,GKBaseTableViewController,GKTabbar and some useful category. GKResource.bundle -->put all the resource in this bundle. Utils -->some utils class View -->custom views such as Toast
###Demo Project
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...");
}];
複製程式碼
add tarbar normal list icons and selected list icons ,if you want add button in the
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];
});
}
複製程式碼
###Installation
CocoaPods 1.Add pod 'GKKit' to your Podfile 2.Run pod install or pod update. 3.Import <GKKit/GKKit.h>
Manually 1.Download all the files in the 'GKKit' subdirectory. 2.Add the source files to your Xcode project. 3.Import <GKKit/GKKit.h>
###License GKKit is provided under the MIT license. See LICENSE file for details.
if you like it, please click star button .Thanks!