1:获取数组中最大的那个值
NSMutableArray * infoarray = [[NSMutableArray alloc] init];
for (GCBabyInformationModel * infomodel in self.babydata) {
CGFloat namewith = [responseBuilder WidthLableTitle:infomodel.name textFont:FontArial(16) Emptylen:0 linespacing:0 Labelheight:30];
[infoarray addObject:[NSNumber numberWithFloat:namewith]];
}
CGFloat max_infowith = [[infoarray valueForKeyPath:@"@max.floatValue"] floatValue]; //获取数组中最大的那个值
网友评论