azamsharp
azamsharp

Reputation: 20066

Animating UIImageView over a background image

I have a UIImageView that I have resized to fit a small ball. The current background is black color. I want to set the background as some image and then move the ball on top of that image. I tried to use another UIImageView but the background takes over the ball image and the ball is not visible. Any ideas!

Upvotes: 0

Views: 214

Answers (2)

JoBu1324
JoBu1324

Reputation: 7769

In IB, are you sure you have the small UIImageView in on top of the larger one? Try deleting the smaller UIImageView from IB and re-adding it on top of the larger one. I noticed that it's hard to tell which UIView is on top in IB for some reason.

Posting as requested. Glad I could help!

Upvotes: 1

Smixx
Smixx

Reputation: 345

I would suggest not using interface build and just doing it programatically, much more control that way.

Upvotes: 0

Related Questions