Button in UITableViewCell not responding under ios 7

前端 未结 23 1721
刺人心
刺人心 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:45

    What worked for me is this:

    contentView.userInteractionEnabled = NO;
    

    called after loading my custom cell from nib. It looks like this content view is created and set as a top-level child view after creating views defined in the nib file.

提交回复
热议问题