Answers for "swift array to data"

0

swift array to data

let stringsData = NSMutableData()
for string in strings {

    if let stringData = string.dataUsingEncoding(NSUTF16StringEncoding) {

        stringsData.appendData(stringData)

    } else {

        NSLog("Uh oh, trouble!")

    }

}
Posted by: Guest on April-07-2022

Code answers related to "Swift"

Browse Popular Code Answers by Language