CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.
TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2018 |
Maintained by LarryEmerson.
Depends on: | |
LEFrameworks | >= 0 |
SDWebImage/GIF | >= 0 |
20170508 最新开发库LEUIMaker中已经整合了LEImageFrameworks的所有内容,并且对接口做了进一步升级,详见https://github.com/LarryEmerson/LEUIMaker ImageFrameworks、LEBanner、LEConfigurableList) LEImageFrameworks不再更新维护, LEUIMaker持续更新中...
#import <LEImageFrameworks/LEImageFrameworks.h>
use_frameworks!
target 'xxx' do
pod 'LEImageFrameworks'
end
1-这是一个可配置化的列表封装(LEBaseConfigurableTableView)。经常做项目会发现,很多项目都存在个人中心、个人设置、系统设置等列表界面,但是每次的项目却并不一致。每次都重新构架或者复制粘贴是件非常浪费时间的事情。
2-LEBaseConfigurableTableView就是抽离出Cell的模板,并且定义配置规则,使用时只需要建立数据源和实现点击事件即可。
3-另外为了满足特殊要求,LEBaseConfigurableTableView定义了自定义入口。可以通过注册自定义的Cell,把自定义Cell添加到LEBaseConfigurableTableView中。
1-自定义:demo代码中演示了如何添加注册自己的模板
2-L_Icon_Title_R_Arrow:图标+标题+箭头
3-L_Title_R_Subtitle:标题+副标题,特点是subtitle满足多行显示的要求
4-L_Title_R_Icon_Arrow:标题+图标+箭头
5-L_Title_R_Arrow:标题+箭头
6-M_Submit:按钮(退出登录、确定...)
7-L_Title_R_Switch:标题+开关(推送开启?)
8-L_Title_R_Subtitle_Arrow:标题+副标题+箭头,副标题不支持多行
9-F_SectionSolid:分割线
自定义cell的数据源举例:
[curData addObject:@{
LEConfigurableCellKey_Type:[NSNumber numberWithInt:100],
LEConfigurableCellKey_Title:@"这是自定义Item的title部分,最多允许显示2行内容,超过的内容部分会被...替代",
LEConfigurableCellKey_Subtitle:@"这是自定义Item的subtitle,只能显示1行,超过的内容部分会被...替代",
LEConfigurableCellKey_LocalImage:[LEColorBlue leImageWithSize:LESquareSize(LELayoutAvatarSize)],
LEConfigurableCellKey_Function:@"LEConfigurableCell_Customized"
}];
第2个cell点击事件接口举例(L_Icon_Title_R_Arrow):
-(void) L_Icon_Title_R_Arrow{
[self.view leAddLocalNotification:@"根据方法名称,找到已经实现的方法L_Icon_Title_R_Arrow"];
}
/**
用于给M_Submit赋值按钮文字以及其他Cell赋值Title(NSString),适用:L_Icon_Title_R_Arrow、L_Title_R_Subtitle、L_Title_R_Icon_Arrow、L_Title_R_Arrow、L_Title_R_Switch、L_Title_R_Subtitle_Arrow
*/
#define LEConfigurableCellKey_Title @"title"
其他Key请查看接口
LarryEmerson, [email protected]
LEImageFrameworks is available under the MIT license. See the LICENSE file for more info.