【问题标题】:NSUnknownKeyException error in app delegate应用程序委托中的 NSUnknownKeyException 错误
【发布时间】:2015-11-24 12:08:25
【问题描述】:

我的应用程序在我使用标签和文本字段的应用程序委托的每个屏幕上都崩溃了。删除标签后,应用程序工作正常,但再次连接到 swift 文件时再次崩溃。

【问题讨论】:

  • 检查IB中的labelPriceInCell outlet。
  • 是的@Midhun MP 插座已连接,但在控制器 .h 或 .m 文件中不存在
  • 检查 xib 中的 outlet labelpriceInCell
  • 您需要移除该插座并再次检查

标签: ios iphone xcode appdelegate nsexception


【解决方案1】:

如果您遇到此类错误

STEP 1:Go XIB or if use STORYBOARD go STORYBOARD
STEP 2:Click View Controller
STEP 3:Again Give connection properly(Fill the circle)
STEP 4:Also check whether it is for button action or outlet property

非常重要:右键单击文件的所有者(黄色)并单击“连接检查器”(右上箭头),一次查看所有出口。寻找 !s 表示缺少插座。删除它。现在可以了。

【讨论】:

    猜你喜欢
    • 2015-12-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-04-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多