2015年1月21日
摘要: iOS 7中默认的导航栏在开始定制之前,我们先来看看iOS 7中默认导航栏的外观。通过Xcode用Single View Controller模板创建一个工程。然后将view controller嵌入到一个navigation controller中。如果你不想从头开始,那么也可以在这里下载到这个示... 阅读全文
posted @ 2015-01-21 12:23 airy99 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 1. 新建一个工程//// RootViewController.m// YouXianMing//// Copyright (c) 2014年 Y.X. All rights reserved.//#import "RootViewController.h"@interface RootVi... 阅读全文
posted @ 2015-01-21 11:56 airy99 阅读(435) 评论(0) 推荐(0) 编辑
摘要: NSArray排序方法讲解给数组排序有着多种方式最麻烦的是sortedArrayUsingSelector:,其次是sortedArrayUsingDescriptors:,最容易使用的就是sortedArrayUsingComparator:从最容易使用的开始吧: // 原始数组 NS... 阅读全文
posted @ 2015-01-21 11:48 airy99 阅读(222) 评论(0) 推荐(0) 编辑
摘要: //获得document+(NSString *)documentsPath {NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);return [paths... 阅读全文
posted @ 2015-01-21 11:27 airy99 阅读(251) 评论(0) 推荐(0) 编辑