首页 文章

在子视图上添加按钮,再次通过超级视图

提问于
浏览
0

我有uiviewController作为主视图,然后我添加了名为“supporteview”的子视图 . 现在我在supportview上以编程方式添加按钮 . 由于某种原因,按钮不可见,但当我在主视图上加载按钮时,我能够看到按钮 .

[self.view addSubview:self.supportview]; [self.view bringSubviewToFront:self.supportView]; [self.supportView addSubview:self.btn]; [self.supportView bringSubviewToFront:self.button];

我在supportView中添加了滑块,然后加载按钮 .

1 回答

相关问题