C 爱 统 统 状 态
C 爱 统 统 状 态 显示 FPS 状态 | 位置灵活(内置于 JPFPSStatus,对其进行优化和调整)
屏幕截图
Podfile
platform :ios, '9.0'
pod 'CCFPSStatus'
说明
注意:使用 C 爱 统 统 状 态 的 DEBUG 模式
在 AppDelegate.m 中添加代码
#import "CCFPSStatus.h" - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. #if defined(DEBUG)||defined(_DEBUG) [[CCFPSStatus sharedInstance] open]; #endif return YES; }
#if defined(DEBUG)||defined(_DEBUG) [[CCFPSStatus sharedInstance] openWithHandler:^(NSInteger fpsValue) { NSLog(@"fpsvalue %@",@(fpsValue)); }]; #endif
#if defined(DEBUG)||defined(_DEBUG) [[CCFPSStatus sharedInstance] close]; #endif
许可
所有源代码均受MIT 许可协议许可。