> Why does adding a subview remove another subview from the main view?

Why does adding a subview remove another subview from the main view?

Posted at: 2014-12-18 
I am programming in Xcode and have a banner view at the bottom of the screen that is programmatically set to use iAd and Admob when iAd is not available. However, when I press a button, an image is generated and moves down the screen as an animation. As soon as the button is pressed, the banner subview disappears. I have been stuck on this for a while and am really stuck.

Here is the code being used:

UIImageView *randomRice = [[UIImageView alloc] initWithFrame:CGRectMake(xValue, -20, 20, 20)];

randomRice.image = [UIImage imageNamed:@"grainofrice.png"];

[UIView beginAnimations:nil context:NULL];

[UIView setAnimationDuration:1.2];

[UIView setAnimationRepeatAutoreverses:NO];

randomRice.center = CGPointMake(randomRice.center.x, randomRice.center.y + (yValue));

[UIView commitAnimations];

[self.view addSubview:randomRice];

[self.view bringSubviewToFront:randomRice];

In the iAd method.....

[self.view addSubview:self.iAdBannerView];

In the Admob method....

[self.view addSubview:self.gAdBannerView];

What can I change to fix this?