摘要: 前阵子见到一个应用,是有那种单词排序的,还以为是用了什么 高深的技术,昨天在一本书上看到这个例子,只要用NSArray类内置的按字母顺序进行排序的功能就行了,使用sortedArrayUsingSelect()函数并将比较函数设置成系统的compare()函数即可。效果图如下:#import <UIKit/UIKit.h>@interface VocabularyAppDelegate : NSObject <UIApplicationDelegate>{ UIWindow *window;}@property (nonatomic, retain) IBOutlet 阅读全文
posted @ 2011-10-25 13:13 寒星晓月 专注移动互联网 阅读(2566) 评论(0) 推荐(0) 编辑