質問編集履歴
2
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
「処理終了確認」という処理なのか、
|
22
22
|
|
23
|
-
|
23
|
+
直列的に処理を行うのか、、
|
24
24
|
|
25
25
|
いまいち理解できずにおります。
|
26
26
|
|
1
コード記述
test
CHANGED
File without changes
|
test
CHANGED
@@ -27,3 +27,51 @@
|
|
27
27
|
|
28
28
|
|
29
29
|
恐れ入りますがご教授お願いいたします。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
具体的なコードは以下です。
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
```lang-swift
|
42
|
+
|
43
|
+
@IBAction func btn(sender: AnyObject) {
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
let maskingImage = UIImage(named: "mask.png")
|
48
|
+
|
49
|
+
displayImage.image = maskImage(originalImage.image!, mask: maskingImage!)
|
50
|
+
|
51
|
+
let cImage = displayImage.image
|
52
|
+
|
53
|
+
UIGraphicsBeginImageContext(cImage!.size)
|
54
|
+
|
55
|
+
cImage!.drawAtPoint(CGPoint(x: 0.0, y: 0.0))
|
56
|
+
|
57
|
+
let nonLayerImage = UIGraphicsGetImageFromCurrentImageContext()
|
58
|
+
|
59
|
+
UIGraphicsEndImageContext()
|
60
|
+
|
61
|
+
displayImage.image = UIImage(data: UIImagePNGRepresentation(nonLayerImage)!)
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
```
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
この処理中(画像にマスクがかけ終わり、スクショを取り、再度表示させ終わるまで、)の間
|
72
|
+
|
73
|
+
プログレスバーを表示させたいのです。
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
よろしくお願いいたします。
|