开发者

Are blocks supported in iPhone OS 3.1.3?

I am 开发者_如何学Pythontrying to use Objective-C blocks in an iPhone 3.1.3 app but am getting a linkage error:

"_NSConcreteGlobalBlock," referenced from:

Any ideas as to whether blocks are supported in the iPhone 3.1.3 SDK? I found conflicting reports on the internet.


Blocks are not supported natively on the iPhone. However, there is an option: The "plblocks" project allows you to compile block-based code for 10.5 and iPhone OS 2.2+:

  • http://code.google.com/p/plblocks/ (project)
  • http://github.com/zakovyrya/iPhone-blocks (example of use on iPhone)
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜