开发者

flicker a screen of iphone ipad in given frequency

开发者 https://www.devze.com 2023-03-20 04:27 出处:网络
I want my app 开发者_如何学Pythonto blink/flicker in the screen hopefully showing a video or photos, in a given exact frequency,like from 2 Hz to 70 Hz, could go black, of with a heavy dark filter?Cre

I want my app 开发者_如何学Pythonto blink/flicker in the screen hopefully showing a video or photos, in a given exact frequency, like from 2 Hz to 70 Hz, could go black, of with a heavy dark filter?


Create a scheduled timer with interval of 1/70.

[NSTimer scheduledTimerWithTimeInterval:1.0/70.0 target:self selector:@selector(flicker) userInfo:nil repeats:YES];

Then, in your flicker method, change the alpha property of your view.

Alex

0

精彩评论

暂无评论...
验证码 换一张
取 消