Hacker News new | ask | show | jobs
by interpol_p 4744 days 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.
1 comments

No, 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/r...:

Thank you for the correction — I was thinking of ARC and weak references when I made that comment.
Actually, I stand corrected, indexed subscripting works back to iOS 5:

https://developer.apple.com/library/ios/#releasenotes/Object...