CHZLogView
轻松地将日志打印和显示在您的 APP 上。一行代码输出日志到 App 上。
安装
您可以使用 CocoaPods 安装 CHZLogView。
如果您尚未这样做,您可能想初始化项目,以便为您生成 Podfile
模板
$ pod init
然后,编辑 Podfile
,添加 CHZLogView
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyAppName' do
pod 'CHZLogView'
end
然后安装 pods
$ pod install
然后打开 .xcworkspace
而不是 .xcodeproj
。
有关 Cocoapods 的更多信息,请访问 https://cocoapods.org.cn。
如何使用
导入头文件
#import <CHZLogView.h>
方法
APPLogWithFormat(@".....:%@", string);
手势提示
- 点击浮动按钮显示或隐藏 LogView。
- 长按浮动按钮以关闭 CHZLogView。
- 您可以将浮动按钮拖动到合适的位置。
- 双击 LogView 可以清除所有日志。