GithubHelp home page GithubHelp logo

feihuohua / yuchinesesorting Goto Github PK

View Code? Open in Web Editor NEW

This project forked from littleniu/yuchinesesorting

0.0 2.0 0.0 710 KB

iOS通讯录联系人列表较完整(中文排序)

Ruby 1.25% Objective-C 89.24% C 0.97% Makefile 8.54%

yuchinesesorting's Introduction

image

YUChineseSorting

#pod 'YUChineseSorting', '> 1.0.2' -> YUChineseSorting (1.0.2) iOS通讯录联系人列表较完整(中文排序) pod 'YUChineseSorting', '> 1.0.2' - Homepage: https://github.com/c6357/YUChineseSorting - Source: https://github.com/c6357/YUChineseSorting.git - Versions: 1.0.2 [master repo]

一.导入头文件#import <ChineseString.h>

二.使用示例

NSArray *stringsToSort=[NSArray arrayWithObjects:
                        @"¥hhh, .$",@" ¥Chin ese ",@"开源** ",@"www.oschina.net",
                        @"开源技术",@"社区",@"开发者",@"传播",
                        @"2014",@"a1",@"100",@"**",@"暑假作业",
                        @"键盘", @"鼠标",@"hello",@"world",@"b1",
                        nil];

self.indexArray = [ChineseString IndexArray:stringsToSort];
self.letterResultArr = [ChineseString LetterSortArray:stringsToSort];

log

效果图

三.注意 因为中文排序里面有c的文件 pinyin.c

plan 1:

pch文件如下 例如:

  #ifdef __OBJC__
  #import "AppDelegate.h"
  #endif

  __OBJC__表示宏内引用的文件确保只被使用Objective-C语言的文件所引用,保证引用关系的清晰。

plan 2 :

pinyin.c 改为pinyin.m

yuchinesesorting's People

Contributors

c6357 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.