开发者

Overlapping images in cocoa touch applications

开发者 https://www.devze.com 2023-01-13 07:01 出处:网络
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开发

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开发者_StackOverflow button. How can I make it appear behind the button?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消