OC基礎知識(面試必看)

OC基礎知識html 1、屬性和關鍵字 ·成員變量與屬性的區別:聲明瞭@property並@synthesize後編譯器會爲實例變量生成getter和setter方法,成員變量用來存儲屬性的值web ·修飾屬性的關鍵字: atomic/nonatomic readwrite/readonly assign/weak retain/strong/copy/ (weak/strong只能在arc下使用
相關文章
相關標籤/搜索