I need to check if an dict has a key or not. How?
转载于:https://stackoverflow.com/questions/2784648/how-to-check-if-an-nsdictionary-or-nsmutabledictionary-contains-a-key
I need to check if an dict has a key or not. How?
转载于:https://stackoverflow.com/questions/2784648/how-to-check-if-an-nsdictionary-or-nsmutabledictionary-contains-a-key
objectForKey
will return nil if a key doesn't exist.