![](/img/trans.png)
[英]How can I loop through all subviews of a UIView, and their subviews and their subviews
[英]How do I stack subviews on iOS?
我有一个图形视图,我想在上面覆盖一些按钮。 当我创建带有按钮的笔尖并在添加图形后将其添加为子视图时,它只会在白色屏幕上显示按钮。
GraphViewController *graphViewController = [[GraphViewController alloc] init];
[self.view addSubview:graphViewController.view];
GraphButtonViewController *graphButtonViewController = [[GraphButtonViewController alloc] initWithNibName:@"GraphButtonView" bundle:nil];
[self.view addSubview:graphButtonViewController.view];
您是否尝试过使GraphButtonView xib的(主)视图具有透明背景?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.