iPhone OS 3.1.3是否支持块? [英] Are blocks supported in iPhone OS 3.1.3?
本文介绍了iPhone OS 3.1.3是否支持块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试在iPhone 3.1.3应用程序中使用Objective-C块,但出现了链接错误:
I am trying to use Objective-C blocks in an iPhone 3.1.3 app but am getting a linkage error:
"_NSConcreteGlobalBlock," referenced from:
关于iPhone 3.1.3 SDK是否支持块的任何想法?我在互联网上发现冲突的报告.
Any ideas as to whether blocks are supported in the iPhone 3.1.3 SDK? I found conflicting reports on the internet.
推荐答案
iPhone本身不支持块 .但是,有一个选项:"plblocks"项目允许您为10.5和iPhone OS 2.2+编译基于块的代码:
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/(项目)
- http://github.com/zakovyrya/iPhone-blocks (使用示例在iPhone上)
- http://code.google.com/p/plblocks/ (project)
- http://github.com/zakovyrya/iPhone-blocks (example of use on iPhone)
这篇关于iPhone OS 3.1.3是否支持块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文