怎样把一个NSMutableArray内容转换成NSStringn
1个回答
展开全部
引入SBJson.h
//将array转为json需要的string
SBJsonWriter *sbJson = [[SBJsonWriter alloc] init];
NSString *str = [sbJson stringWithObject:uploadArr];
//上传的dic
NSDictionary *dic = [[NSDictionary alloc] initWithObjectsAndKeys:str,@"key", nil];
//将array转为json需要的string
SBJsonWriter *sbJson = [[SBJsonWriter alloc] init];
NSString *str = [sbJson stringWithObject:uploadArr];
//上传的dic
NSDictionary *dic = [[NSDictionary alloc] initWithObjectsAndKeys:str,@"key", nil];
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询