UITableView displays separator at wrong position in iOS8 for some cells

前端 未结 1 1655
借酒劲吻你
借酒劲吻你 2021-01-07 19:12

We have a UITableView and it was working fine for iOS7 but when I tried in the iOS8 simulator, I saw the cell separator was placed incorrectly for most cells. Strangely, som

相关标签:
1条回答
  • 2021-01-07 19:52

    I had the same problem and here is how I solved it:

    If you are using a custom cell for your table view and you have overridden layoutSubviews, you need to call it's superview's method at the beginning of the method:

    - (void)layoutSubviews
    {
        [super layoutSubviews];
        // Your implementation
    }
    
    0 讨论(0)
提交回复
热议问题