2015-09-11 169 views
0

我有简单的tableview与包含uibutton的自定义单元格。更新至iOS 9 GM或9.1 Beta 1(无关紧要)后,单元格停止响应。我也在单元类内部创建了IBAction方法,但它也不起作用UITableView自定义单元格(iOS 9)

cell.username.setAttributedTitle(attrNameString, forState: .Normal) 
cell.username.tag = notify.likeObject.likedUserId.integerValue 
cell.username.addTarget(self, action: "showProfile:", forControlEvents: .TouchUpInside) 
+1

编辑您的问题的标题。当前标题应该在标签中。 –

回答

1

好的,我找到了一个修复程序。当我从XIB创建单元格时的问题。所以我添加了self.contentView.userInteractionEnabled = false到单元类,它解决了问题