JPFPSStatus_tim 0.2.1

JPFPSStatus_tim 0.2.1

测试已测试
Lang语言 Obj-CObjective C
许可证 MIT
Released上次发布2017年3月

Tim.robbit 维护。



  • coderyi

JPFPSStatus

README 中文

在 StatusBar 上显示 FPS 状态

Podfile

platform :ios, '7.0'
pod 'JPFPSStatus', '~> 0.1'

说明

注意:在 DEBUG 模式下使用 JPFPSStatus

在 AppDelegate.m 中添加代码

#import "JPFPSStatus.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
#if defined(DEBUG)||defined(_DEBUG)
    [[JPFPSStatus sharedInstance] open];
#endif
    return YES;
}

#if defined(DEBUG)||defined(_DEBUG)
    [[JPFPSStatus sharedInstance] openWithHandler:^(NSInteger fpsValue) {
        NSLog(@"fpsvalue %@",@(fpsValue));
    }];
#endif

#if defined(DEBUG)||defined(_DEBUG)
    [[JPFPSStatus sharedInstance] close];
#endif

许可证

所有源代码均采用 MIT 许可证 许可。