• Stars
    star
    571
  • Rank 78,102 (Top 2 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created over 8 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Show FPS Status on StatusBar

JPFPSStatus

Pod Version Pod Platform Pod License

README 中文

Show FPS Status on StatusBar

Podfile

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

Instruction

Note:Use JPFPSStatus in DEBUG mode

add the code in 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

Licenses

All source code is licensed under the MIT License.