objectForKeyedSubscript: crash on iOS 5.1

后端 未结 3 1290
借酒劲吻你
借酒劲吻你 2021-01-17 03:15

I\'m running some code that does a [NSDictionary objectForKeyedSubscript:] and it\'s crashing on iOS 5, but not iOS 6. I am using xcode 4.5.2 and compiling against the iOS

3条回答
  •  醉话见心
    2021-01-17 04:21

    There is a workaround for pre-iOS6 SDKs

    Checkout question here: Is there any way to get the neat Objective-C literal indexing feature in Xcode 4.4?

提交回复
热议问题