3 ms·
iOS's Objective-C doesn't support garbage collection. iOS 5 will add support for Automatic Reference Counting, but no real garbage collection. So if you are wri
by cpeterso 15y ago
iOS's Objective-C doesn't support garbage collection. iOS 5 will add support for Automatic Reference Counting, but no real garbage collection. So if you are writing cross-platform Objective-C code that must support iOS devices and Macs, then you can't rely on garbage collection. And if you must support iOS < 5, then you can't rely on Automatic Reference Counting either.
- shadowfiend 15y agoNot quite right. There is some support for ARC for iOS 4 (that is bundled with the compiled app). Some more at http://stackoverflow.com/questions/6308425/ios-5-best-practice-release-retain http://stackoverflow.com/questions/6308425/ios-5-best-practi... .