Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jkpang committed Sep 20, 2016
1 parent c286f88 commit c4a796b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Binary file not shown.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
###2.CocoaPods安装:
first
`pod 'PPGetAddressBook',:git => 'https://github.com/jkpang/PPGetAddressBook.git'`

then
`pod install或pod install --no-repo-update`

Expand All @@ -39,8 +40,8 @@ then
```objc
//获取按联系人姓名首字拼音A~Z排序(已经对姓名的第二个字做了处理)
[PPGetAddressBook getOrderAddressBook:^(NSDictionary<NSString *,NSArray *> *addressBookDict, NSArray *nameKeys) {
//addressBookDict:装着所有联系人的字典
//peopleNameKey:联系人分组按拼音分组的Key值;
//addressBookDict: 装着所有联系人的字典
//nameKeys: A~Z拼音字母数组;
//刷新 tableView
[self.tableView reloadData];
} authorizationFailure:^{
Expand All @@ -54,7 +55,7 @@ then
```objc
//获取没有经过排序的联系人模型
[PPGetAddressBook getOriginalAddressBook:^(NSArray<PPPersonModel *> *addressBookArray) {
//addressBookArray:原始顺序的联系人数组
//addressBookArray:原始顺序的联系人模型数组
//刷新 tableView
[self.tableView reloadData];
Expand Down

0 comments on commit c4a796b

Please sign in to comment.