3 ms·
Indexed subscripting is available down to iOS 4.x I think — definitely available on iOS 5. It's a compiler technology, not related to the SDK.
by interpol_p 13y ago
Indexed subscripting is available down to iOS 4.x I think — definitely available on iOS 5. It's a compiler technology, not related to the SDK.
- conradev 13y agoNo, declaring literals is a compiler technology that works with any SDK. Subscripting requires runtime support in the form of `-[NSDictionary objectForKeyedSubscript:]` and pals , available only in iOS6 and above: http://developer.apple.com/library/ios/documentation/cocoa/reference/foundation/Classes/NSDictionary_Class/Reference/Reference.html#//apple_ref/occ/instm/NSDictionary/objectForKeyedSubscript http://developer.apple.com/library/ios/documentation/cocoa/r...:
- interpol_p 13y agoThank you for the correction — I was thinking of ARC and weak references when I made that comment.
- conradev 13y agoActually, I stand corrected, indexed subscripting works back to iOS 5: https://developer.apple.com/library/ios/#releasenotes/ObjectiveC/ObjCAvailabilityIndex/index.html https://developer.apple.com/library/ios/#releasenotes/Object...