分段控制器在启动时不隐藏项目
我有一个分段控制器,我已经对其进行了编程,它可以正常工作,但有一个问题。当应用程序首次启动时,它具有所有项目(甚至是我编程隐藏的项目)。请参阅下面的图片。
当我第一次运行我的应用程序时,它看起来像这样。
我
单击分段控制器切换到另一个视图,就会发生这种情况
然后我单击返回原始内容,它们按照应有的方式隐藏。
如何获取它,以便在启动应用程序时它看起来像最后两张图片而不是全部隐藏起来?
I have a segmented controller that I have programed and it works and all, but there is one problem. When the app first launches it has all of the items (even the ones I have programmed to be hidden). See pictures below.
When I first run my app, it looks like this.
I click the segmented controller to switch to the other view and this happens
Then I click back to the original and they are hidden they way they are supposed to be.
How do I get it so that when I launch the app it appears like the last two pictures instead of some of all of it being un-hidden?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
确保 [A setHidden:YES] 中的“A”不为零
Make sure the "A" in [A setHidden:YES] is not nil