Skip to content

Commit

Permalink
update ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
tbl00c committed Apr 3, 2019
1 parent 5b2e593 commit 4c242f0
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 26 deletions.
30 changes: 4 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,34 +12,12 @@

## 更新

### 0.2.1
1、新增已有列表页不修改cell代码、迁移至ZZFLEX列表页方案
### 0.2.2
1、ZZFlexVC新增```isEmpty()```方法

```
self.addCells(@"ZZFDAlbumCell").toSection(sectionType).withDataModelArray(data)
.configAction(^(ZZFDAlbumCell *cell, ZZFDAlbumModel *model) { // 配置cell,等价于cellForRowAtIndexPath时的配置逻辑
[cell setModel:model];
})
.viewSize(CGSizeMake(itemWidth, itemWidth)) // 设置大小
.selectedAction(^ (ZZFDAlbumModel *model) { // 点击事件,等价于didSelectRowAtIndexPath时的逻辑
[XLPhotoBrowser showPhotoBrowserWithImages:@[model.image] currentImageIndex:0];
});
```

2、UITextFiled增加enable api

### 0.2.0
1、addCell新增```configAction(__kindof UIView *itemView, id dataModel)```方法,可以使用传统方式配置cell属性,示例:

```
self.addCell(@"ACell").toSection(sectionTag).configAction(^(UITableViewCell *cell, id model) {
[cell.textLabel setText:model.name];
[cell.detailTextLabel setText:model.phoneNumber];
[cell setBackgroundColor:model.bgColor];
});
```
2、ZZFLEXRequestQueue BUB修复

2、优化部分代码结构,修复已知bug
[更多更新记录](./update.md)

## 如何使用

Expand Down
4 changes: 4 additions & 0 deletions ZZFLEXDemo/ZZFLEXDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
C248E3AC225457F100CB74E9 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = C248E3AA225457F100CB74E9 /* README.md */; };
C248E3AD225457F100CB74E9 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = C248E3AB225457F100CB74E9 /* LICENSE */; };
C248E3AF2254580500CB74E9 /* ZZFLEX.podspec in Resources */ = {isa = PBXBuildFile; fileRef = C248E3AE2254580500CB74E9 /* ZZFLEX.podspec */; };
C248E3B322545B2800CB74E9 /* update.md in Resources */ = {isa = PBXBuildFile; fileRef = C248E3B222545B2800CB74E9 /* update.md */; };
C25C21002027547E003D3192 /* Subscription.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C25C20F42027547E003D3192 /* Subscription.xcassets */; };
C25C21012027547E003D3192 /* ZZFDSubscriptionEditViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C25C20F62027547E003D3192 /* ZZFDSubscriptionEditViewController.m */; };
C25C21022027547E003D3192 /* ZZFDSubscriptionViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = C25C20FB2027547E003D3192 /* ZZFDSubscriptionViewController.m */; };
Expand Down Expand Up @@ -108,6 +109,7 @@
C248E3AA225457F100CB74E9 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = README.md; path = ../README.md; sourceTree = "<group>"; };
C248E3AB225457F100CB74E9 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = LICENSE; path = ../LICENSE; sourceTree = "<group>"; };
C248E3AE2254580500CB74E9 /* ZZFLEX.podspec */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = ZZFLEX.podspec; path = ../ZZFLEX.podspec; sourceTree = "<group>"; };
C248E3B222545B2800CB74E9 /* update.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; name = update.md; path = ../update.md; sourceTree = "<group>"; };
C25C20F42027547E003D3192 /* Subscription.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Subscription.xcassets; sourceTree = "<group>"; };
C25C20F62027547E003D3192 /* ZZFDSubscriptionEditViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ZZFDSubscriptionEditViewController.m; sourceTree = "<group>"; };
C25C20F72027547E003D3192 /* ZZFDSubscriptionEditViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZZFDSubscriptionEditViewController.h; sourceTree = "<group>"; };
Expand Down Expand Up @@ -311,6 +313,7 @@
C248E3A9225457D000CB74E9 /* Podspec Metadata */ = {
isa = PBXGroup;
children = (
C248E3B222545B2800CB74E9 /* update.md */,
C248E3AE2254580500CB74E9 /* ZZFLEX.podspec */,
C248E3AB225457F100CB74E9 /* LICENSE */,
C248E3AA225457F100CB74E9 /* README.md */,
Expand Down Expand Up @@ -926,6 +929,7 @@
C248E3AF2254580500CB74E9 /* ZZFLEX.podspec in Resources */,
C2DA6B612019BCFA005A747A /* RequestQueue.xcassets in Resources */,
C27E9F781FCE84E40062C896 /* ZZGood.xcassets in Resources */,
C248E3B322545B2800CB74E9 /* update.md in Resources */,
C2863A921FCCFB76008BC3C0 /* Assets.xcassets in Resources */,
C25C21002027547E003D3192 /* Subscription.xcassets in Resources */,
C2863A9B1FCCFBA7008BC3C0 /* LaunchScreen.storyboard in Resources */,
Expand Down
Binary file not shown.
33 changes: 33 additions & 0 deletions update.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## ZZFLEX更新记录

### 0.2.2
1、ZZFlexVC新增```isEmpty()```方法

2、ZZFLEXRequestQueue BUB修复

### 0.2.1
1、新增已有列表页不修改cell代码、迁移至ZZFLEX列表页方案

```
self.addCells(@"ZZFDAlbumCell").toSection(sectionType).withDataModelArray(data)
.configAction(^(ZZFDAlbumCell *cell, ZZFDAlbumModel *model) { // 配置cell,等价于cellForRowAtIndexPath时的配置逻辑
[cell setModel:model];
})
.viewSize(CGSizeMake(itemWidth, itemWidth)) // 设置大小
.selectedAction(^ (ZZFDAlbumModel *model) { // 点击事件,等价于didSelectRowAtIndexPath时的逻辑
[XLPhotoBrowser showPhotoBrowserWithImages:@[model.image] currentImageIndex:0];
});
```

2、UITextFiled增加enable api

### 0.2.0
1、addCell新增```configAction(__kindof UIView *itemView, id dataModel)```方法,可以使用传统方式配置cell属性,示例:

```
self.addCell(@"ACell").toSection(sectionTag).configAction(^(UITableViewCell *cell, id model) {
[cell.textLabel setText:model.name];
[cell.detailTextLabel setText:model.phoneNumber];
[cell setBackgroundColor:model.bgColor];
});
```

0 comments on commit 4c242f0

Please sign in to comment.