dontWatchMyProfile dontWatchMyProfile - 1 year ago 89
Objective-C Question

How to check if an NSDictionary or NSMutableDictionary contains a key?

I need to check if an dict has a key or not. How?

Answer Source

objectForKey will return nil if a key doesn't exist.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download