I am parsing JSON
and get the value.Store
value as NSString
and when I want to show on UILabel
app crashes with
unrecognized selector sent to instance 0x7b070470`
NSString *idvalue = [jsonResponse objectForKey:@"id"];`
labl_id.text =idvalue;
NSLog(@"id value%@",idvalue);
output: id value 6
please let me know how to fix this thanks
MB你得到NSNumber
NSString *idvalue = [[jsonResponse valueForKey:@"id"] stringValue];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.