编程笔记(Objective-c:属性的实现)

转载请标明出处:blog.csdn.net/zhangxingping     前面的示例程序中已经看到了使用@synthesize关键字来告诉编译器自动生成属性的getter和setter方法。也就是说若是咱们没有显示地在@implementation代码块中实现属性的getter和setter方法,编译器会自动根据property的attributes来生成相应的getter和setter。其
相关文章
相关标签/搜索