Button in UITableViewCell not responding under ios 7

前端 未结 23 1749
刺人心
刺人心 2020-11-30 01:16

I have one tableview and each cell contains one button. It\'s working pretty well all iOS versions but 7. I don\'t know what\'s going on. The cell is constructed in one xib

23条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-30 01:32

    I have been get the same problem. The reason is

    self.contentView.Frame.size.height
    

    is always 44.

    There is a suggestion you can set your self.contentView.Frame to self.frame at the overwrite method - (void)layoutSubviews the problem will be solved

提交回复
热议问题