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!")
}
}