看板
[ MacDev ]
討論串[問題] Xcode程式 Memory Manage的問題
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
你沒有設定@property嗎?建議把pageinfo_display設為property(retain)我很好奇的是 在anonymous category (Class Extension)裡面可以宣告變數嗎?UITextField的text的property設定為retain因此使用此sett
(還有242個字)
內容預覽:
應該2才是對的,原本的寫法會有memory leak,. 記得所有經過alloc都需要 release,. 而你1所提到的setter會做的動作是 retain(告訴系統,這邊會在參考一次,. 這邊系統會知道,這個字串 retain 的次數是 2(alloc , assign),. 等到pagein
(還有423個字)
內容預覽:
各位前輩們,請問一個問題. 在MyViewController.h檔中. @interface MyViewController:UIViewController {. IBOutlet UITextField *pageinfo_display;. }. @end. 在MyViewControll
(還有505個字)
首頁
上一頁
1
下一頁
尾頁