Hacker News new | past | comments | ask | show | jobs | submit login

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




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: