richdaddycashmany / jcbrightness Goto Github PK
View Code? Open in Web Editor NEWgradually adjust brightness of screen
License: MIT License
gradually adjust brightness of screen
License: MIT License
当跳转到下一个需要高亮的控制器,等待差不多10s左右返回上级页面,亮度依旧还是高亮。
发现到高亮的控制器的时候,过差不多十秒会执行 saveDefaultBrightness 方法,导致存储了亮度是高亮的亮度。
现在的代码监听屏幕亮度变化,会出现一直常亮的bug;支付宝在收款码界面没有监听屏幕变化。退出收款码界面界面会用之前暂存的亮度。
修改代码如下
[_queue addOperationWithBlock:^{
[NSThread sleepForTimeInterval:1 / 180.0];
dispatch_async(dispatch_get_main_queue(), ^{
[UIScreen mainScreen].brightness = brightness + i * step;
});
}];
It would be helpfull to add the project to cocoapods. thanks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.