iosLearner iosLearner - 1 year ago 72
Swift Question

Is this right conversion from Swift to Objective C?

In swift


In Objective C

(![[tempPlays objectForKey:@"1"] integerValue]) // tempPlays is NSDictionary

New to iOS..

Answer Source

In Objective-C

 if (![tempPlays.allValues containsObject:@"1"]) {}


if (![tempPlays.allValues containsObject:@(1)]) {}
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download