【发布时间】:2011-10-06 15:36:38
【问题描述】:
iOS5:捏缩放时 UITableview 崩溃
步骤:
1.开表
2. 捏合手势缩放
iOS5 崩溃!!! SIGABRT
在 iOS 4.x 上运行良好
可能是什么原因?
信号 SIGABRT 之后
- (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView {
return tableView;
}
*** Terminating app due to uncaught exception 'NSGenericException', reason:
'The view returned from viewForZoomingInScrollView: must be a subview of the scroll view.
It can not be the scroll view itself.'
【问题讨论】:
-
您需要提供更多信息。 (崩溃日志、相关代码等)
-
没有崩溃日志。没有。只发出信号 SIGABRT
-
编辑您的问题以添加代码(确保使用编辑器中的
{}按钮对其进行格式化),并查明代码失败的位置。
标签: uitableview uiscrollview zooming subview ios5