Skip to content

About

GroupedData When using UITableView With HeaderView. MeanWhile,the array will be grouped like #ABC...Z✿

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

YFGroupedData

Get grouped data which can be used in UITableView with HeaderView. MeanWhile,the array will be grouped as #ABC...Z✿ ordered in ascending order

"#" means number[0-9]

"ABC..Z" means alphabet[The first letter of English or Chinese phonetic]

"✿" means other symbols

#####博客园记录: 【IOS】将一组包含中文的数据按照#ABC...Z✿分组

##Effection:

Alphabet

![GroupName](https://github.com/yvanwang1992/YFGroupedData/blob/master/screenshots/pictureTop.png)

HeaderView Label Name

  ![AllAlphabet](https://github.com/yvanwang1992/YFGroupedData/blob/master/screenshots/pictureBottom.png)

How To Use It?

####1.#import "YFGroupedData.h"

####2.Methods

//@[[@"11",@"32"],@[@"big",@"Boy"],...@[@"zoom",@"zune"]]

#####+(NSArray *)getGroupedArray:(NSArray *)array;

//@[@"title1",@"title2",...@"titlen"]

#####+(NSArray *)getIndexArray:(NSArray *)array;

//@[{@"indexKey":@"A",@"arrayKey":@[@"abandon",@"About",@"All"]}, // ............ , //@{@"indexKey":@"Z",@"arrayKey":@[@"bean",@"Big",@"boy"]}

#####+(NSArray *)getGroupedDictionaryArray:(NSArray *)array

indexKey:(NSString *)indexKey arrayKey:(NSString *)arrayKey;

//@[{@"A":@[@"abandon",@"About",@"All"]}, // ...................... , // {@"Z":@[@"bean",@"Big",@"boy"]}]

#####+(NSArray *)getGroupedDictionaryArray:(NSArray *)array;

About

GroupedData When using UITableView With HeaderView. MeanWhile,the array will be grouped like #ABC...Z✿

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages