Convert a String to an array of characters swift 2.0 -
i need convert string array of characters. work in swift 1.2 , lower doesn't since swift 2.0
var mystring = "hello" array(mystring) // ["h", "e", "l", "l", "o"]
var mystring = "hello" let characters = [character](mystring.characters) // ["h","e","l","l","o"]
hope helps
Comments
Post a Comment