作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个使用 CollapsableTableView 的 iPhone 应用程序。升级到 iOS 6 后,应用程序崩溃并出现以下错误。
"A view can only be associated with at most one view controller at a time! View is associated with CollapsableTableViewHeaderViewController: 0x8a93430. Clear this association before associating this view with CollapsableTableViewHeaderViewController: 0x8a943c0"
最佳答案
你必须使用这样的东西:
[self.addSubView collapsableViewController.view];
这种关联是不允许的,因为如错误描述中所述,一个 View 不能与两个 View Controller 相关联。
关于ios5 - iOS6 中的 CollapsableTableView、UIViewControllerHierarchyInconsistency 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12952574/
我有一个使用 CollapsableTableView 的 iPhone 应用程序。升级到 iOS 6 后,应用程序崩溃并出现以下错误。 "A view can only be associated
我是一名优秀的程序员,十分优秀!