#pragma mark - 处理曲线空值数据
//处理为nil数据:
- (NSMutableArray *)GetNoNilValueArr:(NSArray *)array
{
NSMutableArray *newArr = [NSMutableArray arrayWithCapacity:array.count];
for (NSNumber *value in array) {
NSLog(@"%@",value);
if ([value isEqualToNumber:@0])
{
[newArr addObject:@""];
}
else
{
[newArr addObject:value];
}
}
return newArr;
}
网友评论