草庐IT

initWithRed

全部标签

iphone - UIColor -initWithRed :green:blue:alpha: memory leak?

我有这种情况:UIColor*color=[[UIColoralloc]initWithRed:0/255.fgreen:156/255.fblue:255/255.falpha:1];self.lightBlue=color;color=nil;[colorrelease];并在UIColor*color=[[UIColoralloc]initWithRed:0/255.fgreen:156/255.fblue:255/255.falpha:1]中接收内存泄漏;Instruments的情况:有什么想法吗? 最佳答案 您将局部变量“