简体   繁体   English

选项卡式图标和键盘未出现在Swift的文本字段中

[英]Tabbed icons & Keyboard not appearing in text field in Swift

I am working in Xcode 6 in swift. 我正在迅速使用Xcode 6。 I am using the default UITabBarItem tab icons which are appearing in Main.storyboard, but are not appearing in the simulator (I am using the default images -- nothing uploaded). 我正在使用默认的UITabBarItem选项卡图标,这些图标显示在Main.storyboard中,但没有出现在模拟器中(我使用的是默认图像-没有上载的图像)。 In addition, the keyboard is not appearing after touching into a text field. 此外,触摸文本字段后键盘未出现。 I am getting the following error: 我收到以下错误:

Could not load the " " image referenced from a nib in the bundle with identifier "Project Name". 无法加载标识符为“项目名称”的捆绑包中笔尖引用的“”图像。

Note that this error is only happened after a segue into the tab bar controller. 请注意,仅在进入标签栏控制器后才发生此错误。 It is working correctly in prior views. 在以前的视图中它可以正常工作。

It looks like you have a bad layout which is pushing the tab icons off the screen. 看来您的布局不好,正在将标签图标推离屏幕。 Suggest you use the Resolve AutoLayout Issues and check it out. 建议您使用“解决自动布局问题”并检出。 Can't comment on the second issue without the code. 没有代码就无法评论第二个问题。

只需clear the constraints ,然后单击Add Missing Constraints

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

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