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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -