ios - 应用程序在 iOS 8 设备上运行良好但在 iOS 7 设备上崩溃

标签 ios objective-c iphone

我已经使用 Xcode 6 开发了应用程序,它使用了自动布局和大小类。它在 iOS 8 设备上运行良好,但在 iOS 7 设备上运行应用程序时出现问题。在一个 View Controller 中,应用程序崩溃并出现以下异常:

*** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UIView 0x7916a9c0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key keyPath.'

我已经检查了连接检查器中的所有连接,它们都是干净的。请提出一些解决方案来克服这个问题。

最佳答案

这通常与删除的 IBOutlet 有关。检查你的 Storyboard/Nibs socket ,看看是否有任何标有“!”的东西:这意味着相应的 socket 已被删除。

关于ios - 应用程序在 iOS 8 设备上运行良好但在 iOS 7 设备上崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29006274/

相关文章:

ios - Google Analytics iOS 中的自定义维度

ios - Apple MusicKit 开发者 token

iphone - 使用 iOS SDK 和完整的 Cocoa Touch/Objective-C 代码确定用户的设备

iOS UIView 3D 旋转和 subview

ios - 将数据发送到 detailViewController 不起作用?

ios - didSelectRowAtIndexPath 不以编程方式导航到 destinationView

ios - Objective C 代码中的导出和 Action 存储在哪里?

iphone - UILocalizedIndexedCollat​​ion的sectionForObject :(id)object collationStringSelector:(SEL)selector method中选择器的作用是什么

iphone - 如何 "Auto SMS Sender"工作 - 在后台发送短信

iphone - 表格包含这么多Sections,如何单独增加每一行的Label值