开发者

UIImageViews Depth issue

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜