0
如何在Objective C编程中使用UISegmentedControl来显示或隐藏屏幕上的某些按钮?使用UISegmentedControl显示/隐藏按钮
这个网站的其他问题表明此代码:
if (selectedSegment == 0) {
[firstView setHidden:NO];
[secondView setHidden:YES];
} else {
[firstView setHidden:YES];
[secondView setHidden:NO];
}
但究竟如何我把东西进入的firstView和secondView? 如果有人给我示例,请添加一个UIButton作为示例。 注意:由于我的程序很长,我不能使用基于视图的应用程序来执行此操作。 在此先感谢。