Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在界面生成器的同一个 ViewController 中创建了两个视图。一个带有表格视图,另一个带有几个按钮。我想改变对 segmentControl 的 valueChanged 事件的看法。如何调用我已经创建的第二个视图。
请帮忙。
分段控件的处理程序:
-(void)controlDidChange:(id)sender { viewWithTable.hidden = !viewWithTable.hidden; viewWithButtons.hidden = !viewWithTable.hidden; }