Stay hungry,stay foolish
摘要: Objective-C中对象的创建和初始化(Allocating and Initializing Objects)(主要内容来自于Apple的电子书《The Objective-C Programming Language》的“Allocating and Initializing Objects... 阅读全文
posted @ 2015-09-17 17:27 程序员不圆 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 1 #import 2 3 @interfaceCattle:NSObject{ 4 5 intlegsCount; 6 7 } 8 9 -(void)saySomething; 10 11 -(void)setLegsCount:(int)count; 12 1... 阅读全文
posted @ 2015-09-17 16:25 程序员不圆 阅读(200) 评论(0) 推荐(0) 编辑
摘要: OC方面的基础笔记摘录:1.类的基本用法#import // 大体上就是include, 用于包含头文件, 但是即使头文件中, 没有ifndef defined endif, 仍然能够踢除重复包含的头文件// ----@interface section----// OC中声明和实现是分离的, 两个... 阅读全文
posted @ 2015-09-17 11:34 程序员不圆 阅读(217) 评论(0) 推荐(0) 编辑