RFPS---iOS检测界面FPS

2017-09-05  本文已影响0人  ray_1942

写了一个检测FPS的控件 https://github.com/ray1942/RFPS
使用方式很简单,导入进去之后,在AppDelegate的
添加一句

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        
        //检测FPS
        RFPS.trackFPS()
    
        return true
    }

显示效果如下:

效果看这
上一篇 下一篇

猜你喜欢

热点阅读