IOS5中是否提供objectAtIndexedSubscript? [英] Is objectAtIndexedSubscript available in IOS5?
问题描述
文档说它在MacOS 1.08中可用.
The documentation says it's available in MacOS 1.08.
那是什么故事?对于iOS5呢?
So what's the story? What about for iOS5?
这是一个非常重要的选择器,因为除非我缺少某些东西,否则self [5]实际上会变成[self objectAtIndexedSubscript:5].
It's a very important selector because self[5] will actually turn into [self objectAtIndexedSubscript:5] unless I am missing something.
不适用于NSOrderedSet,但适用于NSArray.
Doesn't work in NSOrderedSet but works in NSArray.
我想念什么?
推荐答案
否,仅由于iOS 6不幸.
No, only since iOS 6 unfortunately.
Apple为OS X和iOS API提供了单独的文档.您必须检查正确的一个:
Apple has separate documentations for the OS X and the iOS APIs. You have to check the right one: objectAtIndexedSubscript:
.
可用性
在iOS 6.0和更高版本中可用.
Availability
Available in iOS 6.0 and later.
这篇关于IOS5中是否提供objectAtIndexedSubscript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!