ボタンを押したときに次の画面にゆっくりと画面遷移したいのですが、以下のコードではデフォルトの速度になってしまいます。良い方法はないでしょうか、よろしくお願いいたします。
swift
1@IBAction func next(_ sender: Any) { 2 3 count += 1 4 5 if count == 1 { 6 7... 8... 9... 10... } else if count == 8 { 11 UITextView.animate(withDuration: 1.0, delay: 0.0, options: [.curveEaseIn], animations: { 12 let storyboard: UIStoryboard = self.storyboard! 13 let Htu2 = storyboard.instantiateViewController(withIdentifier: "Htu2") 14 Htu2.modalTransitionStyle = UIModalTransitionStyle.crossDissolve 15 self.present(Htu2, animated: true, completion: nil) 16 }, completion: nil) 17 } 18 } 19
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。