Latest 0.0.2
Homepage https://github.com/ymsheng/MNFrameRate
License MIT
Platforms ios 6.0
Frameworks UIKit
Authors

MNFrameRate iOS测试FPS的工具 (支持iOS6及以上)

在iOS开发时,我们经常要注意屏幕渲染是否卡。通过检测每秒的丢桢数,计算得出FPS.

####### 1、把本工程中的MNFrameRate两个添加到自己的项目中
####### 2、在AppDelegate.m文件引入头文件:#import "MNFrameRate.h"
####### 3、在 -(BOOL)application:(UIApplication )application didFinishLaunchingWithOptions:(NSDictionary )launchOptions 的window初始化后,加入 [MNFrameRate sharedFrameRate].enabled = YES; //YES打开FPS,NO关闭FPS
####### 4、如果用mainStoryBoard,建议放到ViewController中的一个事件触发。如viewDidAppear
####### 5、Demo在iOS7的iphone4s上测试比iOS9的iphone5s渲染速度快。

CocoaPods安装

####### 1.在Podfile 中添加 pod ‘MNFrameRate’
####### 2.执行 pod install 或 pod update
####### 3.在使用类中 #import "MNFrameRate.h"

了解CocoaPods

http://ymsheng.github.io/cocoapods.html

Latest podspec

{
    "name": "MNFrameRate1",
    "version": "0.0.2",
    "summary": "for ios develop to check fps",
    "description": "A longer description of MNFrameRate in Markdown format.nnWrite MNFrameRate for developer check if the UI draw fluentn       * Think: Why did you write this? What is the focus? What does it do?n       * CocoaPods will be using this to generate tags, and improve search results.n       * Try to keep it short, snappy and to the point.n       * Finally, don't worry about the indent, CocoaPods strips it!",
    "homepage": "https://github.com/ymsheng/MNFrameRate",
    "license": "MIT",
    "authors": {
        "yangmaosheng": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "http://git.kanzhun.org/bosszhipin/mnframerate1.git",
        "tag": "0.0.2"
    },
    "source_files": "FrameRate/MNFrameRate/*.{h,m}",
    "exclude_files": "Classes/Exclude",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This