ios - NSNumber in NSDictionary is always null -
i'm building project , want add nsnumber nsdictionary. crashed because of null value. so, created small program check happened. can see in snapshot: why the value of nsnumber in nsdictionary null?
i've run code , reproduce problem. seems debugger problem. instance, if after dictionary created, go console , try printing dictionary.
po dictionary
my result like:
$4 = 0x2083e770 { number = 1; }
so it's not null @ all. also, after that, anum assigned correctly , b set yes. looks debugger issue instead of bug you.
Comments
Post a Comment