FPSLabel
一个小巧的库,提供可拖动的标签以显示 FPS。
安装
- 运行
pod repo update
以使 CocoaPods 认识到最新的 FPSLabel 版本。 - 在 Podfile 中,将
pod 'FPSLabel'
添加到主要的和测试的目标。 - 从命令行,运行
pod install
。
如何使用
从 AppDelegate
中,在 didFinishLaunchingWithOptions
中
- Objective-C
#import <FPSLabel/FPSLabel.h>
[FPSLabel installOnWindow:self.window];
- Swift
import FPSLabel
FPSLabel.install(on: self.window)