JLUsefulTools
示例
要运行示例项目,请克隆仓库,然后从 Example 目录首先运行 pod install
所需条件
安装
JLUsefulTools 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile
pod 'JLUsefulTools'
作者
EzioChen, [email protected]
许可证
JLUsefulTools遵循MIT许可证。更多信息请参阅LICENSE文件。
简单代码
转换数据
import UIKit
import JLUsefulTools
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let dataArr:[UInt8] = [0x01,0x02,0x03,0x04]
let data = Data(bytes: dataArr, count: 4)
ECPrintInfo("dataL\(data.eHex)", self, "\(#function)", #line)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}