一,工程图。

二,代码。

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib. NSString* cityPlistPath = [[NSBundle mainBundle] pathForResource:@"cities" ofType:@"plist"]; //按照拼写排序,spell是英文拼写
NSSortDescriptor *bySpell = [NSSortDescriptor sortDescriptorWithKey:@"spell" ascending:YES];
NSArray *cities = [[NSArray arrayWithContentsOfFile:cityPlistPath] sortedArrayUsingDescriptors:@[bySpell]];
NSLog(@"--cities--%@",cities); }

最新文章

  1. 我的MYSQL学习心得(十五) 日志
  2. urlMappings与URL映射
  3. HTTP请求常见状态码
  4. iOS YSKit系列
  5. php目录文件下有php-ini-development和php.ini-production。
  6. WebConfig自定义节点并读取
  7. 转载Worktile 技术架构概要
  8. json的引号之伤
  9. liteUploader上传控件的封装使用
  10. CentOS 7 安装phpredis和redis(接上一篇centos7安装lnmp)
  11. github使用步骤
  12. 骚气男孩saochi boy 唐砖 插曲
  13. shell變量和數組
  14. RESTful记录-RESTful服务
  15. C# 将 Json 解析成 DateTable
  16. gdb 内存查看
  17. MySQL Windows 安装与配置
  18. 分析org.rpgpoet.Music.wizards.length
  19. 洛谷P1592 互质
  20. charles抓取https中出现unknow

热门文章

  1. golang 切片和数组在for...range中的区别
  2. Oracle 获取本周、本月、本季、本年的第一天和最后一天
  3. Android初识Helloworld
  4. linux下的进程(孤儿进程、僵尸进程)
  5. python获取动态网站上面的动态加载的数据(初级)
  6. AsyncTask实现网络图片的异步加载
  7. Chapter 3 Phenomenon——22
  8. 高可用Hadoop平台-答疑篇
  9. 轻量级web富文本框——wangEditor使用手册(2)——扩展一个“缩进”功能 demo
  10. python 生成唯一识别码