ios - UIView 1px height always scales wrong in UITableViewCell -
i have custom tableview
cell in interfacebuilder
, how looks in ib
:
notice thin white line under label. how it's supposed during runtime.
the hierarchy of uitableviewcell
:
my problem is, during runtime of app, line (which first view
under view
) scales big, think 5px height, maybe bigger.
i tried following after research, doesn't work.
cell.line.frame =cgrectmake(161,36,282,1/[[uiscreen mainscreen] scale]);
you should add height constrain line view.
Comments
Post a Comment