小编use*_*379的帖子

如何在NSMutableArray中添加整数值?

NSMutableArray * val;
val = [[NSMutableArray alloc] initWithCapacity:15];

/*int outlineWidth = barOutlineWidth;
int outlineHalfWidth = (outlineWidth > 1) ? outlineWidth * 0.5f : 0;
 */
for ( Bar * obj in values )
{  
  // calcualte the bar size
  float value  = [obj value];
  float scale  = ( value / maxValue );

  // shift the bar to the top or bottom of the render line
  int pointY   = lineHeight + ( (lineWidth * 0.5f) * ( ( value >= 0.0f …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c

17
推荐指数
2
解决办法
5万
查看次数

标签 统计

iphone ×1

objective-c ×1