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.
我正在快速使用 Xcode 6。我正在使用出现在 Main.storyboard 中的默认 UITabBarItem 选项卡图标,但没有出现在模拟器中(我使用的是默认图像——没有上传)。此外,在触摸文本字段后不会出现键盘。我收到以下错误:
无法加载从包中带有标识符“项目名称”的笔尖引用的“”图像。
请注意,此错误仅在进入选项卡栏控制器后发生。它在先前的视图中正常工作。
看起来您的布局很糟糕,正在将选项卡图标推离屏幕。建议您使用解决自动布局问题并检查一下。没有代码,无法评论第二个问题。
只需clear the constraints然后单击Add Missing Constraints
clear the constraints
Add Missing Constraints