2017-09-22 7 views

答えて

0

さて、私は非常に醜い修正でそれを解決しました。私は何か他のことをお勧めしますが、何時間もグーグルで話した後、私はどのように知りません。

色合いを変更して1秒待ってから元に戻します。アニメーションを削除するには十分です。

// Hides the movement of the cursor in the text field 
      let originalSearchBarTintColor = textFieldInsideSearchBar?.tintColor 
      textFieldInsideSearchBar?.tintColor = UIColor.clear 
      DispatchQueue.main.asyncAfter(deadline: .now() + 1) { 
       textFieldInsideSearchBar?.tintColor = originalSearchBarTintColor 
      } 

もう一度この一時的な修正を解決することはお勧めしません。

関連する問題