ios - 无法识别的选择器发送到实例 - UIViewController

标签 ios uiviewcontroller objective-c++

我在 tableviewcontroller.m 中并收到此消息:

-{UIViewController setDetailModal:]: 无法识别的选择器发送到实例 0x8aaf310。

我该如何解决这个问题才能继续使用我的 detailview Controller ?

最佳答案

在您的 xib 或 Storyboard文件中,将详细 View Controller 的类设置为详细 View Controller 子类的名称。目前,运行时认为它是一个普通的 UIViewController。

关于ios - 无法识别的选择器发送到实例 - UIViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20768012/

相关文章:

ios - 在 macOS Safari 和 iOS 浏览器中悬停时出现 CSS 转换和 z-index 错误

ios - 是否可以在不创建新容器但使用现有容器的情况下将应用程序与 CloudKit 一起使用?

objective-c - 将两个 XIB 连接到一个 ViewController

ios - 在 View 中添加图像并将 View 转换为 ios 中的 jpeg 图像

cocoa-touch - 模态视图 Controller 出现缓慢

android - Flutter:找不到符号 MethodCallHandler

ios - 在应用程序终止后使用 NSNotification 处理 UIViewController 中的 UILocalNotification

c++ - 当在 Objective-C++ 中应用于 __weak 指针时,通过 "auto"关键字推导类型的规则是什么?

ios - 在 Objective C 示例教程中使用 C++ 文件

ios - 在 iOS 上的 Metal 中未触发 addPresentedHandler