顯示具有 Object C 標籤的文章。 顯示所有文章
顯示具有 Object C 標籤的文章。 顯示所有文章

2012年4月25日 星期三

OBjectC筆記 -- @property 和 @synthersize

最近終於有點時間,可以寫一個屬於自己的應用程式了。打開了久違的Xcode之後,發現程式碼怎麼看起來都有點陌生呢?? 所以只好把 Object C的重點重新整理一遍囉。

首先介紹的是 @property and @syntherize,其功能就是由 xcode 幫忙產生 setter and getter
原文:@property and @syntherize are what are know as prepocessor macros, which is to say that when you hit "Build and Run" in xcode it knows to replace @property with some prewritten/preformatted block of code