類似ARC forbids explicit message send of'release' 錯誤解決

You are currently using the ARC to reference count for you.

 (ARC is "Automatic Reference Counting", a new feature to iOS 5). 

Therefore you do not need to manually retain or release. 

You can either remove your retain call all together or turn off ARC by doing the following:


Click on the name of the project on the navigation view in the left side, 

go to Targets -> Build Phases and add -fno-objc-arc to the "compiler flags" for any relevant files.


發佈了19 篇原創文章 · 獲贊 9 · 訪問量 22萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章