iOS 键盘带有“加入”,转到另一个视图
我希望加入键盘按钮使用以下代码切换到另一个视图:
PurseTab *CustomViewControllerScreen =
[self.storyboard instantiateViewControllerWithIdentifier:@"Detail"];
[self.navigationController pushViewController:CustomViewControllerScreen
animated:YES];
如果我单击按钮,则不会发生任何事情。
PS我正在使用故事板。
I want the Join keyboard button to switch to another view with the following code:
PurseTab *CustomViewControllerScreen =
[self.storyboard instantiateViewControllerWithIdentifier:@"Detail"];
[self.navigationController pushViewController:CustomViewControllerScreen
animated:YES];
If i click on button nothing happens.
P.S. I'm using Storyboard.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果错误显示
Storyboard () 不包含具有标识符“Detail”的视图控制器
,则 Storyboard 很可能不包含具有标识符Detail
的视图控制器代码>.您可能认为您在故事板中将视图控制器的标识符设置为Detail
,但也许您确实没有这样做,或者您正在测试旧版本的应用程序。您需要确保属性检查器的视图控制器部分中的标识符字段显示
Detail
,大小写正确且没有多余的空格。虽然...如果错误消息确实显示
Storyboard ()
那么这也很可疑。它应该显示类似于Storyboard ()
的内容。If the error says
Storyboard () doesn't contain a view controller with identifier 'Detail'
, then it's pretty likely that the storyboard doesn't contain a view controller with the identifierDetail
. You may think you set the view controller's identifier toDetail
in the storyboard, but perhaps you really didn't, or you are testing an old version of the app.You need to make sure that the Identifier field in the View Controller section of the Attributes Inspector says
Detail
, with correct capitalization and no extra whitespace.Although... if the error message really says
Storyboard ()
then that's pretty suspicious too. It should say something likeStoryboard (<UIStoryboard: 0xb65e570>)
.