gpt4 book ai didi

ios - UITableViewCell 中的按钮在 ios 7 下没有响应

转载 作者:IT王子 更新时间:2023-10-29 07:36:37 26 4
gpt4 key购买 nike

我有一个表格 View ,每个单元格包含一个按钮。除了 7,它在所有 iOS 版本上都运行良好。我不知道发生了什么。单元在一个 xib 文件中构建。

谁能给我一些建议?提前致谢。

最佳答案

对我有用的是:

contentView.userInteractionEnabled = NO;

在从 nib 加载我的自定义单元格后调用。看起来这个内容 View 是在创建 nib 文件中定义的 View 之后创建并设置为顶级 subview 的。

关于ios - UITableViewCell 中的按钮在 ios 7 下没有响应,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18848689/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com