Hacker News new | ask | show | jobs
by conradev 4753 days ago
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...:

1 comments

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...