![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS
文章平均质量分 81
Myhu730
熟练使用.Net开发,酷爱打球......
展开
-
IOS开发之----property详解
转载自-http://blog.sina.com.cn/s/blog_71715bf8010166uj.html 1、简介: property是Objective-C的关键词,与@synthesize配对使用,用来让编译好器自动生成与数据成员同名的方法声明。@synthesize则是用来生成对应声明方法的实现。 1.1 property的语法格式: @prope转载 2015-09-17 11:23:00 · 576 阅读 · 0 评论 -
Objective-C 类声明,定义,实例,初始化
Objective-C中,调用方法被称为发送消息 ,通知对象执行某种操作。语法如下:[shape draw] 一、类声明(接口): @interface TestCoop : NSObject { int iMonth; int iYear; int iDay; } - (void) setYear: (int) iYear; - (void)转载 2015-09-17 15:48:38 · 428 阅读 · 0 评论