I am stuck in an interesting situation where I have 1.4, 1.4 x for reset, y is a pixel dot Start by putting imageview .. and why .. any document link?
Please any light please.
Thank you.
View = [[UIView alloc] initWithFrame: CGRectMake (10, 50, 20, 20)]; View.backgroundColor = [UIColor greenColor]; [Self.view addSubview: view]; Scene 2 = [[UIView alloc] initWithFrame: CGRectMake (10.4, 70, 20, 20)]; View2.backgroundColor = [UIColor redColor]; [Self.view addSubview: view2]; Scene 3 = [[UIView alloc] initWithFrame: CGRectMake (11, 90, 20, 20)]; View3.backgroundColor = [UIColor blue color]; [Self.view addSubview: view3];
The first is a visual reference, I know that its original x is at 20px.
Be careful here, due to retina @ 2x resolution 10 points x = 20 px, and 11 points x = 22 px. You speak in the code in the code, and give a pixel result on the screen.
I tried to change the X coordinate gradually here I found:
-
9.75 & lt; X & lt; = 10.25: Red square starts at x = 20px (green and red left coalition).
-
10.25 & lt; X & lt; = 10.75: The red square starts at x = 21px (does not combine with red green or blue).
-
10.75 & lt; X & lt; = 11.25: The red square starts at x = 22px (green and blue are left).
This is based on your own observation with a quick simulation. I have not searched any official reference though.
There is an image with 3 posts: 10.1, 10.4 and 10.8
Comments
Post a Comment