質問編集履歴

2

エラー内容の補完

2015/10/25 01:30

投稿

Nefytus
Nefytus

スコア12

test CHANGED
File without changes
test CHANGED
@@ -47,3 +47,63 @@
47
47
 
48
48
 
49
49
  適切な質問ができずご迷惑おかけしますが、よろしくお願いいたします。
50
+
51
+
52
+
53
+
54
+
55
+ 当のプログラムは以下の部分です。
56
+
57
+
58
+
59
+ override func viewDidLoad() {
60
+
61
+
62
+
63
+ super.viewDidLoad()
64
+
65
+
66
+
67
+ //一定時間ごとに画像を表示させたのちに隠す
68
+
69
+ var timer = NSTimer.scheduledTimerWithTimeInterval(10.0, target: self, selector: Selector("update:"), userInfo: nil, repeats: true)
70
+
71
+
72
+
73
+ func update(timer: NSTimer){
74
+
75
+ mainImage.hidden = false
76
+
77
+
78
+
79
+ let delay = 3.0 * Double(NSEC_PER_SEC)
80
+
81
+ let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
82
+
83
+ dispatch_after(time, dispatch_get_main_queue(), {
84
+
85
+
86
+
87
+ self.mainImage.hidden = true
88
+
89
+
90
+
91
+ self.Mask.hidden = false
92
+
93
+
94
+
95
+ let delay = 4.0. * Double(NSEC_PER_SEC)
96
+
97
+ let time = dispatch_time(DISPATCH_TIME_NOW, Int64(delay))
98
+
99
+ dispatch_after(time, dispatch_get_main_queue(), {
100
+
101
+
102
+
103
+ self.Mask.hidden = true
104
+
105
+ })
106
+
107
+ })
108
+
109
+ }

1

エラー内容の補完

2015/10/25 01:30

投稿

Nefytus
Nefytus

スコア12

test CHANGED
File without changes
test CHANGED
@@ -17,3 +17,33 @@
17
17
 
18
18
 
19
19
  どなたかご教授いただければと思います。
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ エラー内容について、情報が足りず申し訳ありませんでした。
28
+
29
+ 再度確認したところ、以下のような部分が見つかりました。
30
+
31
+ 「ImageControl[456:116545] -[ImageControl.ViewController update]: unrecognized selector sent to instance 0x170fe400
32
+
33
+ 2015-10-24 13:34:57.245 ImageControl[456:116545] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ImageControl.ViewController update]: unrecognized selector sent to instance 0x170fe400'
34
+
35
+ *** First throw call stack:
36
+
37
+ (0x26fb267b 0x38a4ae17 0x26fb7e95 0x26fb5ac9 0x26ee6128 0x27d86365 0x26f7638f 0x26f75fc1 0x26f73e0d 0x26ec7119 0x26ec6f05 0x30051ac9 0x2b109f15 0x9d324 0x391b9873)
38
+
39
+ libc++abi.dylib: terminating with uncaught exception of type NSException
40
+
41
+ (lldb) 」
42
+
43
+
44
+
45
+ また、エラーの表示があったのは「class AppDelegate: UIResponder, UIApplicationDelegate」の部分でした。
46
+
47
+
48
+
49
+ 適切な質問ができずご迷惑おかけしますが、よろしくお願いいたします。