摘要: Objective-C初学者速查表(来源:http://www.cocoachina.com/applenews/devnews/2013/1115/7362.html)iOS UIKit类图(来源:http://blog.csdn.net/simpson910/article/details/8488284) 阅读全文
posted @ 2013-11-25 15:25 洒洒 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 当你定义了一系列的变量时,需要写很多的getter和setter方法,而且它们的形式都是差不多的,,所以Xcode提供了@property和@synthesize属性,@property用在 .h 头文件中用作声明,@synthesize用在.m 文件中用于实现。 如下,新建一个基于“Command Line Tool”的项目,名为“property”,再新建一个Student类,传统的写法是:Student.h// Student.h// property//// Created by Rio.King on 13-8-25.// Copyright (c) 2013年 Rio.K... 阅读全文
posted @ 2013-11-25 15:08 洒洒 阅读(12955) 评论(1) 推荐(1) 编辑