iOS:奇怪的问题

#define gray_bgColor [UIColor colorWithRed:238/255.0 green:238/255.0  blue:238/255.0  alpha:1.0];//灰色背景

-(UIView*)viewStyleWithFrame:(CGRect)frame bkColor:(UIColor*)bkColor{  

  UIView *view = [[UIView alloc] initWithFrame:frame];  

  if (bkColor) {      

  view.backgroundColor = bkColor;  

  }    

return view;

}

UIView *viewC = [self viewStyleWithFrame:CGRectMake(0, 130+5, kScreen_Width, 5) bkColor:gray_bgColor];//这里报了错,运行不了

你可能感兴趣的:(iOS:奇怪的问题)