Swift 指定位置の文字列を置換する ref: http://qiita.com/matsuyoro/items/b0e119256d498a03a60d
var str:NSString = "ABCDEFGHIJKLMNOP" | |
var pos = NSMakeRange(4,4) // 位置 | |
println(str.stringByReplacingCharactersInRange(pos, withString: "hoge")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment