Print and view logs on your APP easily. 一行代码输出日志到App上。
CHZLogView can be installed using CocoaPods.
If you haven't done so already, you might want to initialize the project, to have it produce a Podfile
template for you:
$ pod init
Then, edit the Podfile
, adding CHZLogView
:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'MyAppName' do
pod 'CHZLogView'
end
Then install the pods:
$ pod install
Then open the .xcworkspace
rather than the .xcodeproj
.
For more information on Cocoapods visit https://cocoapods.org.
Import header file
#import <CHZLogView.h>
Method
APPLogWithFormat(@".....:%@", string);
- Show or hide LogView by clicking floating button.
- Touch-hold floating button to close CHZLogView.
- You can drag floating button to its right place.
- Double-clicking on the LogView can clear all logs.