简体   繁体   中英

MRC in iOS7 and Xcode5

1) Cant we run ios project developed using MRC(Manual Reference Counting) which is for iOS6? Does not Xcode 5 allow to code using MRC as it supports ARC? Can we use only ARC in Xcode 5?

Yes you can. Simply set build setting Objective-C Automatic Reference Counting to No

(Click Project->Build Settings)

Go to Targets --> BuildPhases-->Compile Source here you can see list of .m files double click on any .m file and write -fno-objc-arc . Now you can Use MRC in your code , make sure you write code for all .m (-fno-objc-arc)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM