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

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -

YouTubePlayerFragment cannot be cast to android.support.v4.app.Fragment -