The code which i am using but it shows an error of cannot invoke initializer for type array with argument list of string.utf8view
Help me to convert a string to signed int byte array
static func stringToByteArray(string : String)-> Array<Int8>
{
let array: [Int8] = Array(string.utf8)
//print("string array \(array)")
return array
}