SimulateTouch icon indicating copy to clipboard operation
SimulateTouch copied to clipboard

A bug on iPhone 6(+)

Open sagexy opened this issue 11 years ago • 4 comments

Method:SendTouchesEvent

float factor = 1.0f; if (width == 640 || width == 1536) factor = 2.0f;

    rX = x/width*factor;
    rY = y/height*factor;

here the "factor" is not the best way to get, please solve it

sagexy avatar Nov 10 '14 10:11 sagexy

Did you manage to get it working on iOS 8.1?

inb4ohnoes avatar Nov 20 '14 11:11 inb4ohnoes

I want to use other ways, but I don't know how I can get device's factor in backboardd.

I will just add if statements for new devices. if you have any idea, please fix it.

iolate avatar Jan 07 '15 11:01 iolate

Is there a reason you can't just do this:

float scale = 1.0 if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] == YES) scale = [[UIScreen mainScreen] scale];

???

dgatwood avatar Apr 10 '15 17:04 dgatwood

Try that.. it will not working...

iolate avatar Apr 10 '15 17:04 iolate