4 ms·
No, declaring literals is a compiler technology that works with any SDK. Subscripting requires runtime support in the form of `-[NSDictionary objectForKeyedSub
by conradev 13y 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/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...