LoginSignup
6
8

More than 5 years have passed since last update.

UITableViewCellの領域外にUIをはみ出させたい

Last updated at Posted at 2017-06-26

特定のセルからはみ出すかたちでUIを設置したところ、他のセルの裏側に入って切れてしまった。

そこで、セルのlayerのzPositionの値を変えて一番手前に持ってくることで他のセルの裏に入ることを防ぐことができた。

cell.layer.masksToBounds = false
cell.layer.zPosition = 1
6
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
8