ios - How to set tableview cell separator to 100% width in Swift 3.0? -


i'm developing first app, , have got working except have discovered display issue on ipad, separator of cell limited in width (see screenshot)

screen shot on ipad

i've tried can find on how set margins 0, etc, including:

override func tableview(_ tableview: uitableview, cellforrowat indexpath: indexpath) -> uitableviewcell {      let mycell = tableview.dequeuereusablecell(withidentifier: "cellid", for: indexpath) as! mycell      mycell.preservessuperviewlayoutmargins = false     mycell.separatorinset = uiedgeinsets.zero     mycell.layoutmargins = uiedgeinsets.zero      return mycell } 

i'm not using storyboard , doing programmatically,

any ideas appreciated,

thanks

i believe it's caused readable content guide. can disable setting tableview.celllayoutmarginsfollowreadablewidth = false


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -