简体   繁体   English

iPhone OS 3.1.3是否支持块?

[英]Are blocks supported in iPhone OS 3.1.3?

I am trying to use Objective-C blocks in an iPhone 3.1.3 app but am getting a linkage error: 我正在尝试在iPhone 3.1.3应用程序中使用Objective-C块,但遇到了链接错误:

"_NSConcreteGlobalBlock," referenced from:

Any ideas as to whether blocks are supported in the iPhone 3.1.3 SDK? 关于iPhone 3.1.3 SDK是否支持块的任何想法? I found conflicting reports on the internet. 我在互联网上发现冲突的报告。

Blocks are not supported natively on the iPhone. iPhone本身支持块。 However, there is an option: The "plblocks" project allows you to compile block-based code for 10.5 and iPhone OS 2.2+: 但是,有一个选项:“ plblocks”项目允许您为10.5和iPhone OS 2.2+编译基于块的代码:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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