I’m trying to create a UIView with 1 pixel height.
UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0,0,20,1)];
On a non-Retina iPhone it’s ok, but on Retina it looks like 2 pixels height.
What’s wrong ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
On retina actual pixels and UIKit pixels are different.
Try this: