node ninja
node ninja

Reputation: 32996

Overlapping images in cocoa touch applications

I programatically created a box. It can be moved around the screen. The problem is that there are buttons on the screen I made in Interface Builder. When the box moves over a button, it covers the button. How can I make it appear behind the button?

Upvotes: 0

Views: 57

Answers (1)

Ed Marty
Ed Marty

Reputation: 39700

When you add your box to the view, instead of using [view addSubview:box] use [view insertSubview:box atIndex:0].

Upvotes: 1

Related Questions