UITapGestureRecognizer not working on iOS9

前端 未结 4 1098
再見小時候
再見小時候 2020-12-21 03:08

I have an application which uses UITapGestureRecognizers which seem to not work in iOS9 Beta 2.

They are successfully calling

- (BOOL)g         


        
4条回答
  •  囚心锁ツ
    2020-12-21 03:22

    I ran into this problem as well, specifically when trying to get both my buttons and views w/ tap gestures within a table cell to respond to a click whose layout was defined in a xib. Worked fine on iOS 8 & 10, but not 9. The actual problem was that I added those to a custom uiview and assigned the view's class to my UITableViewCell subclass, rather than use a Table View Cell object within IB. Thus I did not add my subviews to the contentView that the IB object gives you, causing me the problem. The fix was to redo the xib to use the Table View Cell as my root, so I could attach my subviews to the Content View.

提交回复
热议问题