JPFPSStatus 0.1.1

JPFPSStatus 0.1.1

测试测试
语言语言 Obj-CObjective C
许可证 MIT
发布最后发布2017年10月

coderyi 维护。



  • 作者
  • coderyi



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 许可证下。