viewWithTag and addSubview
问题 I am trying to reuse the label by making a call to viewWithTag when I press the UIButton. The code looks ok when it is executed the first time, but is it leaking on executing it multiple times due to line 7? Also is it just better to remove the label from the superview, alloc and addSubview instead of using viewWithTag? 1. UILabel *label = (UILabel *)[self.view viewWithTag:100]; 2. if(label == nil) { 3. label = [[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 20, 20)] autorelease]; 4. label