简体   繁体   English

iOS-UITableView单元不可触摸

[英]iOS - UITableView Cell not touchable

Quick question, I'm creating a custom popup within a UIView with a UIImageView as the background and a UITableView overlaying on top. 快速问题,我正在UIView中创建一个自定义弹出窗口,其中UIImageView作为背景,UITableView覆盖在顶部。 It has three cells, but for some reason the bottom two cells are clickable but the top one isn't. 它具有三个单元格,但是由于某些原因,底部的两个单元格是可单击的,但顶部的单元格却不可单击。 When I NSLog the touch this is what i get: 当我NSLog触摸时,这就是我得到的:

touching <UIView: 0xa3d0200; frame = (0 0; 320 460); autoresize = W+H; tag = 333; layer = <CALayer: 0xa3d0260>>

It says it touching self.view. 它说它感动self.view。 any ideas? 有任何想法吗?

我弄清楚了,我只需要使超级视图大一点,一切都按预期进行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM