新对象文字是否向后兼容iOS 5? [英] Are the new object literals backwards compatible with iOS 5?

查看:98
本文介绍了新对象文字是否向后兼容iOS 5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在试图弄清楚我是否应该开始使用最近添加的对象文字来订阅字典,数组等。 以下帖子似乎表明iOS5不支持它们,我读到iOS6中添加了该功能。

I'm trying to figure out if I should start using the recently added object literals to subscripting dictionaries, arrays and so on. This following post seems to indicate that iOS5 doesn't support them, and I read that the functionality was added in iOS6.

是这样吗?是否有人成功使用iOS5中的新文字?

Is that the case? Is anybody using the new literals in iOS5 successfully?

推荐答案

如果您使用Xcode 4.5构建源代码,那么是的,只要您使用最新的LLVM编译器并且您针对iOS SDK 6.0构建,它们就与iOS 5兼容。

If you're using Xcode 4.5 to build your sources, then yes, they're compatible with iOS 5 as long as you use the latest LLVM compiler and you build against iOS SDK 6.0.

这篇关于新对象文字是否向后兼容iOS 5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆