简体   繁体   中英

UITableViewCell with strange behavior on touch

My view have 2 UITableViews.

The bottom button slides a table view to the front of the other as you can see at the images.

在此处输入图片说明

The problem is that when the table view slides up, the only clickable area turns out to the red area that I have painted on the second image.

If I touch outside this area, is actually touches the table view with green cells behind this one.

I tried disabling the userInteractionEnabled while the yellow table view is expanded but nothing works.

Any ideas?

I guess you should check userInteractionEnabled on your view hierarchy. If you have it disabled on one view, all subviews won't be interactive. For example; if you're using UIImageView, its default value is 'NO'.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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