Why does Apple create it's views this way
- by John Smith
In the hope of fixing a bug of mine from another post i would like to know why apple writes this (for it's Elements example)
UIView *localContainerView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
self.containerView = localContainerView;
[localContainerView release];
instead of the simpler method:
containerView = [[UIView alloc] initWithFrame:[[UIScreen mainScreen] applicationFrame]];
?