V.V V.V - 1 year ago 285
iOS Question

Is it possible to find the refresh rate for iPhone?

I want to know if it is possible to find the refresh rate for the iPhone screen, programmatically. I have searched, but have found no private API available.

Is there any way to find this out?

Thanks in advance.

Answer Source

I believe the iPhone screen refresh rate is fixed to 60Hz, but you can test this yourself using the CADisplayLink API which will call a selector you choose whenever the screen is updated

Use something like:

CADisplayLink *displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(update)];
[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download