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
Post a Comment