Buttonを押したActionで、TextFieldにフォーカスを当てて、キーボードを出したい。
textFieldにフォーカスを当てるにはbecomeFirstResponder()を使う。
@IBAction func startDateButton(_ sender: Any) {
startTextField.becomeFirstResponder()
}
投稿日:
Buttonを押したActionで、TextFieldにフォーカスを当てて、キーボードを出したい。
textFieldにフォーカスを当てるにはbecomeFirstResponder()を使う。
@IBAction func startDateButton(_ sender: Any) {
startTextField.becomeFirstResponder()
}
執筆者:swift
関連記事
ViewControllerを選択→Editor→Embed In→NavigationController NavigationControllerとNavigationBarが出てくる。 View …
PremiereProのテキストアニメーション簡単なやつ色々
・ぼかしからぼやっと出てくる エフェクト「ブラー(ガウス)」→開始でブラー値300、10フレーム後で0 参考:https://youtu.be/pamD-YrZGuY ・1文字ずつ出てる …
プロトコルのデリゲートメソッドを確認したい。 プロトコル名をcommand+クリックJump to Definitionで設計図が見られる。 protocol UITableViewDelegateの …
Firebaseのpod installを試みたが、何度やっても以下のエラーが出る。 [!] Unable to find a specification for `FireBase` You hav …