iOS Today Extension Table View Rows only detects taps on a label

后端 未结 4 1552
天涯浪人
天涯浪人 2020-12-19 08:48

I am having the weirdest of problems with a today widget on iOS.

I have a simple widget with a table view like this: https://grab.edr.io/2e557aa43a34b7460b1eac44cbca

4条回答
  •  囚心锁ツ
    2020-12-19 09:17

    Using the workaround of a background view with a white background color and alpha of 0.01 causes a slightly visible border on iPads where the notification center doesn't cover the whole screen, especially on the right edge of the table view.

    Another workaround without this visual glitch is to use a UILabel as the cell's backgroundView. The label needs no text or background color.

    self.backgroundView = [UILabel new];
    

提交回复
热议问题