开发者

iPad - supports Garbage Collector?

开发者 https://www.devze.com 2022-12-29 00:53 出处:网络
I know you can\'t use GC in iPhone applications cause iPhone does not have enough resources to enable that - it would kill the performence.

I know you can't use GC in iPhone applications cause iPhone does not have enough resources to enable that - it would kill the performence.

What about iPad. I know they run iPhone 开发者_StackOverflowOS too, does that mean that CG can't be enabled on the iPad as well?


There is no Garbage Collected variant of Objective-C in the iPhoneOS. Not even iPad, nor 4.0. Probably Apple doesn't find it important to support it.


With the incoming Xcode 4.2 (still in beta) + iOS 5 you have something almost similar called ARC..

0

精彩评论

暂无评论...
验证码 换一张
取 消