To run the example project, clone the repo, and run pod install from the Example directory first.
JLUsefulTools is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'JLUsefulTools'EzioChen, jackenwind@163.com
JLUsefulTools is available under the MIT license. See the LICENSE file for more info.
To convert data
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.
}
}