开发者

UIImageViews Depth issue

开发者 https://www.devze.com 2023-01-20 03:03 出处:网络
I have a strange issues with layering of the UIImageViews in my game. I have many UIImageViews which get added into the game while user is playing the game. But while game is in progress I need to mod

I have a strange issues with layering of the UIImageViews in my game. I have many UIImageViews which get added into the game while user is playing the game. But while game is in progress I need to modify the layering of the UIImageview in order to sort out dep开发者_运维技巧th issue.

I have tried using insert subview method to change the layering of the UIImageView object but no luck.

Is there any other way to sort out layering issue in UIImageview.

Many thanks


You could use the zPosition property of the views layer.

You could make use of some of the following UIView methods:

– bringSubviewToFront:
– sendSubviewToBack:
– removeFromSuperview
– insertSubview:atIndex:
– insertSubview:aboveSubview:
– insertSubview:belowSubview:
– exchangeSubviewAtIndex:withSubviewAtIndex:
0

精彩评论

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