albumDetailController.view.frame = CGRectMake((1024-600)/2,768, 600, 500);
UIView *bgview = [[UIView alloc] initWithFrame:self.view.frame];
bgview.backgroundColor = [UIColor blackColor];
bgview.alpha = 0;
bgview.tag =11001;
[self.view addSubview:bgview];
UIView *view = (UIView*)[self.view viewWithTag:11001];
使用tag值找view
原创
©著作权归作者所有:来自51CTO博客作者lisiben的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
MySQL 给用户添加 ALTER VIEW 的权限
在某些情况下,需要为用户添加特定的权限,例如 ALTER VIEW 权限,以允许他们修改视图。
数据库 MySQL 数据 ALTER VIEW 视图 -
AS kotlin查看转成的java
一、数据类(data class) 在介绍数据类之前,我们先来看看这样一段代码:class Student(val name: String, var age: Int) fun main(args: Array<String>) { val student = Student("David", 12) println(student) }
AS kotlin查看转成的java Android 移动开发 Kotlin Data Class