看板 [ MacDev ]
討論串[問題] 請問Objective-C中property的問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓2(2推 0噓 4→)留言6則,0人參與, 最新作者uranusjr (←這人是超級笨蛋)時間16年前 (2009/08/13 08:31), 編輯資訊
0
0
0
內容預覽:
@property(attributes) type name;. attributre:. readonly read only (只產生 getter). readwrite 產生 getter 和 setter. assign 在 setter 中簡單替換新舊變數. retain 在 sett
(還有474個字)

推噓0(0推 0噓 0→)留言0則,0人參與, 最新作者mickfang (心該停留在哪裡)時間16年前 (2009/08/13 04:52), 編輯資訊
0
0
0
內容預覽:
原文吃光光~~. 想借標題問一下. 在某些範例當中看到有以下狀況. a.h. @interface A:NSObject {}. @property(nonatomic, retain)NSString * name;. a.m. @implemation A. @dynamic name;. 跟.
(還有35個字)

推噓0(0推 0噓 6→)留言6則,0人參與, 最新作者cheech (兩光勘吉)時間16年前 (2009/08/12 17:59), 編輯資訊
0
0
0
內容預覽:
想請問一下@property的用途是什麼?. 我只知道有property就必須使用synthesize去接. 什麼時候應該要使用@property?. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 140.112.13.64.
首頁
上一頁
1
下一頁
尾頁