摘要: nil Nil 阅读全文
posted @ 2017-02-22 17:36 三年幻想郷 阅读(132) 评论(0) 推荐(0) 编辑
摘要: MRC条件下 - (void)setDog:(Dog *)dog { if (_dog != dog) { [_dog release]; _dog = nil; _dog = [dog retain]; } } - (void)setName:(NSString *)newName { if(_n 阅读全文
posted @ 2017-02-22 15:34 三年幻想郷 阅读(520) 评论(0) 推荐(0) 编辑
摘要: Change id to instancetype in appropriate places Change enum to NS_ENUM or NS_OPTIONS The NS_ENUM macro helps define both the name and type of the enum 阅读全文
posted @ 2017-02-22 11:11 三年幻想郷 阅读(101) 评论(0) 推荐(0) 编辑
摘要: NSString *cachePath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; NSString *voicePath = [cachePath s 阅读全文
posted @ 2016-11-22 10:07 三年幻想郷 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 修改 Created by xxx 系统偏好设置->用户群组->当前用户(然后左下角开锁)右键高级选项->全名; 修改 Copyright xxx 打开项目文件夹 找到.xcodeproj文件 右键显示包含内容 找到project.pbxproj文件 然后打开 修改ORGANIZATIONNAME 阅读全文
posted @ 2016-10-24 11:19 三年幻想郷 阅读(734) 评论(0) 推荐(0) 编辑
摘要: iOS CocoaPods 阅读全文
posted @ 2016-10-14 14:19 三年幻想郷 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 附上原文链接,http://fuckingblocksyntax.com 1、block作为本地变量 returnType(^blockName)(parameterTypes) = ^returnType(parameters){... ...}; 2、block作为属性 @property(no 阅读全文
posted @ 2016-10-13 10:59 三年幻想郷 阅读(496) 评论(0) 推荐(0) 编辑
摘要: iOS 私有属性,私有成员变量的使用选择标准 阅读全文
posted @ 2016-09-26 10:53 三年幻想郷 阅读(552) 评论(0) 推荐(0) 编辑
摘要: AppDelegate:顾名思义应用的代理类,实际上是一个实现了UIApplicationDelegate协议的类; UIApplicationDelegate定义了很多和Application状态,消息相关的方法,可以理解为Application和系统的一个联系。 xcode自动为我们创建的App 阅读全文
posted @ 2016-09-19 16:42 三年幻想郷 阅读(296) 评论(0) 推荐(0) 编辑
摘要: ARM (指令集)结构处理器,几乎所有的手机都基于ARM,其在嵌入式系统中应用广泛。 ARM AMD intel 就是手机的CPU iphone5s及其之后的apple产品都是ARM64设备 ARM 处理器因为低功耗和小尺寸而闻名,它的性能在同等功耗的产品中也很出色。这里我们注意一点,模拟器并不运行 阅读全文
posted @ 2016-09-14 10:11 三年幻想郷 阅读(453) 评论(0) 推荐(0) 编辑