Swift: How to convert a String to UInt8 array?

来源:互联网 发布:网络知名小说家排行榜 编辑:程序博客网 时间:2024/05/24 05:32

http://stackoverflow.com/questions/30255402/swift-how-to-convert-a-string-to-uint8-array

let str = "test"let byteArray = [UInt8](str.utf8)

0 0
原创粉丝点击