objective c - IOS creating a dictionary makes code stuck -


there weird code :

i have (inside function being called nstimer).

nslog(@" adding object array "); nslog(@"match id : %@",self.matchid);  nsdictionary *dict = @{@"matchid"   :    self.matchid   ,                        @"hometeam"  :    self.hometeam  ,                        @"awayteam"  :    self.awayteam  ,                        };  nslog(@" adding object array data : %@",dict);  

i can see first 2 logs, third 1 not printed. timer called again, can see again first 2 third 1 not print again.

any that?

chances (or several) of self.matchid, self.hometeam, self.awayteam nil, throwing exception (nsdictionary expects object values), , therefore skipping third nslog line.


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -