//UIlabel 遇到\n 换行-iOS
desLabel.text = [NSString stringWithFormat:@”%@”,[data[@”data”][@”desc”] stringByReplacingOccurrencesOfString:@”\n” withString:@” \r\n”]];
desLabel.numberOfLines = 0;//自动换行
iOS 遇到后台返回字符串中带有\n
最新推荐文章于 2021-10-20 20:25:24 发布
//UIlabel 遇到\n 换行-iOS
desLabel.text = [NSString stringWithFormat:@”%@”,[data[@”data”][@”desc”] stringByReplacingOccurrencesOfString:@”\n” withString:@” \r\n”]];
desLabel.numberOfLines = 0;//自动换行