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)
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
Post a Comment