读书人

运用tag值找view

发布时间: 2012-10-23 12:12:22 作者: rapoo

使用tag值找view
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];

读书人网 >移动开发

热点推荐