-
头回见到让手写这个代码的...
NSMutableString *str = [[NSMutableString alloc] initWithFormat:@"{\n"]; [dict enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) { [str appendFormat:@"\t%@ : \"%@\"; \n", key, obj]; }]; [str appendFormat:@"}"]; NSLog(@"%@", str);
网友评论