Iphone 把UIView 放在所以view的最上边

来源:互联网 发布:淘宝第三方推广哪个好 编辑:程序博客网 时间:2024/04/24 14:46

有2种方法;

第一种方法:

[parentView bringSubviewToFront:view] will bring the view to the top, but this is only the case if the views are all siblings in the hierarchy.

第二种方法:

theView.layer.zPosition = 1;


原创粉丝点击