teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

NewViewController.swiftのコード追加しました。

2018/09/12 06:11

投稿

pompompurin
pompompurin

スコア12

title CHANGED
File without changes
body CHANGED
@@ -8,7 +8,7 @@
8
8
  コンソールには、
9
9
  libc++abi.dylib: terminating with uncaught exception of type NSException
10
10
  と表示されています。
11
-
11
+ 流れとしては、ViewController.swift→NewViewControllerに画面遷移です。
12
12
  昨日までは画面遷移できていたのに、今日次のページの作業をしている途中に遷移しなくなりました。
13
13
  すみませんがエラーの原因を教えていただきたいです。
14
14
  どこが原因でエラーが出ているのかわからない状態なので、関係ありそうな所を全て載せています。
@@ -16,10 +16,11 @@
16
16
  よろしくお願いいたします。
17
17
 
18
18
 
19
+
20
+ エラーが出ていた場所
21
+ AppDelegate.swift
19
22
  ```
20
- エラーが出ていた場所
21
23
 
22
-
23
24
  import UIKit
24
25
 
25
26
  @UIApplicationMain
@@ -29,9 +30,8 @@
29
30
 
30
31
  ```
31
32
 
32
-
33
+ ViewController.swift
33
34
  ```
34
- 画面遷移しようとしたページです。
35
35
 
36
36
  import UIKit
37
37
 
@@ -87,6 +87,41 @@
87
87
 
88
88
  }
89
89
  ```
90
+
91
+ NewViewController.swift
92
+ ```ここに言語を入力
93
+ import UIKit
94
+
95
+
96
+ class NewViewController: UIViewController {
97
+
98
+ override func viewDidLoad() {
99
+ super.viewDidLoad()
100
+
101
+ // Do any additional setup after loading the view.
102
+ }
103
+
104
+ override func didReceiveMemoryWarning() {
105
+ super.didReceiveMemoryWarning()
106
+ // Dispose of any resources that can be recreated.
107
+ }
108
+
109
+ @IBOutlet weak var tenpomei: UILabel!
110
+
111
+
112
+ /*
113
+ // MARK: - Navigation
114
+
115
+ // In a storyboard-based application, you will often want to do a little preparation before navigation
116
+ override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
117
+ // Get the new view controller using segue.destinationViewController.
118
+ // Pass the selected object to the new view controller.
119
+ }
120
+ */
121
+
122
+ }
123
+
124
+ ```
90
125
  コンソールの画面です
91
126
  ```
92
127
  2018-09-12 14:38:36.859928+0900 newfile[24282:3136946] -[newfile.NewViewController numberOfComponentsInPickerView:]: unrecognized selector sent to instance 0x7fee82c134f0