简体   繁体   English

无法获得Xcode故事板模式按钮来更改屏幕

[英]Can't get the xcode storyboard modal buttons to change screen

I've been following an ios tutorial where I'm required to create multiple view controllers with different screens and connect buttons with modals. 我一直在关注ios教程,在该教程中,需要创建具有不同屏幕的多个视图控制器,并使用模式连接按钮。 I've set up the buttons propertly and even set up the modal settings, but when I run the iphone simulator, nothing happens when i click the button. 我已经正确设置了按钮,甚至设置了模式设置,但是当我运行iphone模拟器时,单击按钮不会发生任何事情。 Is this a bug or am i doing something wrong? 这是一个错误还是我做错了什么?

Thanks!! 谢谢!!

its probably a problem with your storyboard connections 故事板连接可能有问题

  • Open your storyboard 打开故事板
  • Open the right utilities panel in Xcode 在Xcode中打开正确的实用程序面板
  • Select the connections inspector tab 选择连接检查器选项卡
  • Select the different views/buttons involved in the failed interaction, and check the connections panel. 选择失败的交互中涉及的不同视图/按钮,然后检查连接面板。

My guess is it's the button's connections - either it's missing or its trying to link to a connection that isn't existing 我的猜测是按钮的连接-丢失或试图链接到不存在的连接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM