ios - UIView 1px height always scales wrong in UITableViewCell -


i have custom tableview cell in interfacebuilder, how looks in ib:

enter image description here

notice thin white line under label. how it's supposed during runtime.

the hierarchy of uitableviewcell:

enter image description here

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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -