我需要将一个字符串转换成一个字符数组.这项工作在
Swift 1.2和更低版本,但不是Swift 2.0
var myString = "Hello" Array(myString) // ["H","e","l","o"]
var myString = "Hello" let characters = [Character](myString.characters) // ["H","o"]
希望这可以帮助