Skip to content
/ DLKit Public
forked from comcc/DLKit

一站式工具库,一行代码搞定TableViewCell重用,便捷UI界面编写,以及各种有趣功能

Notifications You must be signed in to change notification settings

hyujsawx/DLKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

DLKit

一站式工具库

DLKit : 一站式多功能工具库

1. 一行代码搞定TableViewCell重用

   在cellForRowAtIndexPath方法中:

   不带xib的UITableViewCell: UITableViewCell *cell = GETCELL_NOXIB(UITableViewCell); cell.moedl = model; return cell;

  带xib的UITableViewCell:    UITableViewCell *cell = GETCELL_HASXIB(UITableViewCell); cell.moedl = model; return cell;

2. 便捷UI界面编写
UIViewNew
.dl_frame(CGRectMake(10, 99, 99, 99))
.dl_backgroundColor([UIColor blackColor])
.dl_addToView(self.view);

UIButtonNew
.dl_frame(CGRectMake(10, 290, 99, 99))
.dl_title(@"按钮")
.dl_backgroundImage(@"aaa")
.dl_action(self, @selector(aaa))
.dl_addToView(self.view);

3. 其他各种方便有趣的功能 等你来发现

About

一站式工具库,一行代码搞定TableViewCell重用,便捷UI界面编写,以及各种有趣功能

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%