I have the following in the header:
@property (nonatomic, retain) UIView *overlay;
And in the implementation:
@synthesize overlay;
Then:
UIView *tempOverlay = [[UIView alloc] initWithFrame:CGRectMake(160.0f, 70.0f, 150.0f, 310.0f)];
self.overlay = tempOverlay;
[tempOverlay release];
Isn't the tempOverlay
variable above unnecessary? Can't I just do:
self.overlay = [[UIView alloc] initWithFrame:CGRectMake(160.0f, 70.0f, 150.0f, 310.0f)];