iOS: Why can't I set nil to NSDictionary value?

后端 未结 5 1466
清酒与你
清酒与你 2020-12-29 01:15

This might be very basic question but I was wondering why can\'t I assign nil as NSDictionary value? I have following statement many places in my code. If [q objectFor

5条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-29 02:01

    It wants an actual object... use NSNull

    [NSNull null];
    

提交回复
热议问题