LoginSignup
1
1

More than 5 years have passed since last update.

Swift1.2で発生したエラー

Posted at

UTF16Countが使えない

エラーメッセージ

こんなん出ました

'utf16Count' is unavailable: Take the count of a UTF-16 view instead, i.e. count(str.utf16)

解消方法

変更前
if( self.textView.text.utf16Count == 0 ){...
変後
if( count(self.textView.text.utf16) == 0 ){...

メソッドをoverrideできない

こんなん出ました

エラーメッセージ

Method 'setText' with Objective-C selector 'setText:' conflicts with setter for 'text' from superclass 'UITextView' with the same Objective-C selector

解消方法

わかりませんでした!!!!

困りました

1
1
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
1
1