to try
brickAnim = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"brick-1.png"]]; brickAnim.frame = currentBrick.frame; [self.view addSubview:brickAnim];
edit after viewing the answer to another answer:
Are you declaring and initializing brickAnim elsewhere? if not, you need to add at the beginning:
UIImageView *brickAnim = [[UIImageView alloc] ....;
and in the end:
[brickAnim release]
source share