UITableViewCell weird width?

I have configured UITableView (320 wide) with a UITableViewCell created in IB, the cell also has a width of 320. After setting the background image (320 width) to the UITableViewCell (or my subclass to be correct), I noticed that the cells do not match the right side of the user interface (note the blue color on the selected cell and gray on the above) Does anyone know what causes this?

alt text

Cheers gary

+3
source share
2 answers

seperator seperator UITableView, 1 seperator backgound 5 . , 320x65 320x64, .

alt text

:

LEFT: UITableView Seperator = "None" ( UITableViewCell )

: UITableView Seperator = "Single Line" ( UITableViewCell )

DATA:

  • : 320x65
  • : 320x65
  • : 320x65

, 320x64, .

Cheers Gary

+3

, contentMode (.. aspectFit - ). , 5, 5 ?

, 320x65, 64, aspectFit , , 64/65 * 320 ~= 315.

0

Source: https://habr.com/ru/post/1757185/


All Articles