My code reads a list of key / value pairs, for example:
A:nodeAbc ... Q:node2 R: T:node3 ...
Each pair is separated using NSString: componentsSeparatedByString:
NSArray *kv = [@"R:" componentsSeparatedByString:@":"];
In the above list example, R has no corresponding value. When I ask you to print it, here is what I get:
(lldb) po [kv objectAtIndex: 1] (id) $ 33 = 0x00007fff77a888e0
How can I identify this?
if ([kv objectAtIndex:1])
I would like it to be perceived as zero, how can this be done? Thanks!
source share