LoginSignup
6
4

More than 5 years have passed since last update.

なんでこれに時間かかったんだろ…。

環境

Xcode6.4
Apple Swift version 1.2

文字列長の取得

Swift.count("abc")

utf16countやらcountやらcountElementsやらが使えなくなってました。
そもそもcountElementscountとなり、countString渡すと以下のコンパイルエラーがおきました。

cannot invoke 'count' with an argument list of type (String)

ちょっと困ったのでメモっておきます。

6
4
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
4