ios - Silent crash when creating a NSDictionary dictionaryWithObjectsAndKeys -


profile *profile = [[profile alloc] init];  nslog(@"badgeid %@", badgeid);  nsdictionary *params = [nsdictionary dictionarywithobjectsandkeys:[profile getauthenticationtoken], @"auth_token", badgeid, "badge_id", title, "title", nil]; 

it silently crashes after returning method getauthenticationtoken (which returns string). seems go memory reference crash. println on badgeid on line before returns following:

badgeid 97 

one problem c string "badge_id" not nsdictionary key. use nsstring object such @"badge_id".


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -