Translate

顯示具有 ARC 標籤的文章。 顯示所有文章
顯示具有 ARC 標籤的文章。 顯示所有文章

2013年6月4日 星期二

Xcode files ARC setting

To see which files override the ARC setting:

Select your project in the navigator. This will open the project editor.
In the project editor, select your target.
In the project editor, click Build Phases (not Build Settings).
Expand the Compile Sources build phase.
Here, you can see the compiler flags for each file. Files with that set whether or not to use ARC will include either -fno-objc-arc or -fobjc-arc, for specifying MRR or ARC respectively.

How to know Xcode project is using ARC?

Select your target, then Build Settings. Look for Objective-C Automatic Reference Counting in the Apple LLVM Compiler - Language section.

2013年3月7日 星期四

DMCircularScrollView Crash

在新公司用需要用到一各比較特別的UI
上網查了查發現這個很適合專案要的感覺
沒想到用了四五個小時卻一直當掉
找不出原因
只好把整個網址上網google沒想到


真的是太蝦了拉  
原來要ARC的專案
可是我的專案沒有支援ARC
上網找了一下發現在
[iOS筆記]部份檔案使用/不使用ARC
借我引用一下重點
在專案的TARGETS->Bulid Phases->Compile Sources
選擇不要的.m在Compile Flags設定-fobjc-arc
搞定可以運行了


引用一下
1. 你的專案使用 ARC, 但希望部份檔案不使用,則使用 -fno-objc-arc。
2. 如果你的專案不使用 ARC, 但部份檔案使用,則用 -fobjc-arc。