Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bawn committed Feb 17, 2016
1 parent 0dd6631 commit 62ad3fc
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,23 @@ MultiImageUploadApi *multiImageUploadApi = [[MultiImageUploadApi alloc] init];
__注意,不应该调用`self.responseJSONObject`作为处理数据,请使用`responseObject`来处理__,当实现这个协议方法后,使用 `api1.responseJSONObject` 获取数据时,返回将是 `count` 的值。


### 添加 header

只需要实现`- (NSDictionary *)requestHeaderValue`方法即可,比如

```
- (NSDictionary *)requestHeaderValue{
return @{@"Accept" : @"application/json"};
}
```
或者添加多个header
```
- (NSDictionary *)requestHeaderValue{
return @{@"Accept" : @"application/json", @"Accept" : @"application/json; charset=utf-8" : @"Content-Type"};
}
```


### 关于HUD

如何显示 "正在加载"的 HUD,请参考Demo中的 `LCRequestAccessory`
Expand Down

0 comments on commit 62ad3fc

Please sign in to comment.