let str1 = "9876" let index = 3 Int(str1[str1.startIndex.advancedBy(index)..<str1.startIndex.advancedBy(index+1)])
"9876"から0開始で3番目を取る。
めんどくさい。
let str1 = "9876" let index = 3 Int(str1[str1.startIndex.advancedBy(index)..<str1.startIndex.advancedBy(index+1)])
"9876"から0開始で3番目を取る。
めんどくさい。