OC語言@property @synthesize和id

OC語言@property @synthesize和id 一、@property @synthesize關鍵字 注意:這兩個關鍵字是編譯器特性,讓xcode可以自動生成getter和setter的聲明和實現。 (一)@property 關鍵字 @property 關鍵字可以自動生成某個成員變量的setter和getter方法的聲明 @property int age; 編譯時遇到這一行,則自動擴展
相關文章
相關標籤/搜索