前提・実現したいこと
プログラミング初心者です。
Swiftでアプリを作っており、gifを再生したいです。
SwiftGifOriginを使っています。
発生している問題・エラーメッセージ
パソコン上のシミュレーターでは表示させることができるのですが、iPhoneでやると落ちてしまいます。エラー等も表示されないのですが、どうすればいいでしょうか。
import
1import SwiftGifOrigin 2 3class FiveViewController: UIViewController, UITextFieldDelegate{ 4 5 @IBOutlet weak var ohakaView: UIImageView! 6 7 override func viewDidLoad() { 8 super.viewDidLoad() 9 10 //GIFを表示 11 12 let image = UIImage.gif(name: "ohaka") 13 ohakaView.image = image 14 15 //Text Field のdelegate通知先を決定 16 myTextField.delegate = self 17 18 } 19 20 override func didReceiveMemoryWarning() { 21 super.didReceiveMemoryWarning() 22 // Dispose of any resources that can be recreated. 23 } 24 25 26 @IBOutlet weak var myTextField: UITextField! 27 28 func textFieldShouldReturn(_ textField: UITextField) -> Bool { 29 30 //キーボードを閉じる 31 textField.resignFirstResponder() 32 33 //入力された文字を取り出す(2) 34 if let name = textField.text{ 35 36 //入力された文字を表示 37 print(name) 38 39 } 40 41 //デフォルトの操作を行うのでtrueを返す 42 return true 43 } 44
エラーメッセージ
2019-07-17 15:51:13.430830+0900 try_2[2319:158036] [discovery] errors encountered while discovering extensions: Error Domain=PlugInKit Code=13 "query cancelled" UserInfo={NSLocalizedDescription=query cancelled}
2019-07-17 15:51:37.933810+0900 try_2[2319:158077] [ops] Communications error: Connection interrupted
Message from debugger: Terminated due to memory issue

回答1件
あなたの回答
tips
プレビュー