質問編集履歴
2
ソースの修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
|
15
15
|
```ここに言語を入力
|
16
16
|
//UIImageViewの生成
|
17
|
-
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"http://
|
17
|
+
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"http://画像URL.jpg"]];
|
18
18
|
imageView.frame = CGRectMake(0, 0, 100, 100);
|
19
19
|
imageView.center = CGPointMake(160, 240);
|
20
20
|
imageView.tag = 10;
|
@@ -25,7 +25,7 @@
|
|
25
25
|
どの様にすれば表示されるようになるのでしょうか?
|
26
26
|
|
27
27
|
またレイアウトは
|
28
|
-
画像1 テキスト
|
28
|
+
画像1 テキスト 画像2
|
29
29
|
の様に表示したいと考えています。
|
30
30
|
|
31
31
|
よろしくお願いします。
|
1
ソースにミスがあったので修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -13,12 +13,12 @@
|
|
13
13
|
その下に追記で
|
14
14
|
|
15
15
|
```ここに言語を入力
|
16
|
-
|
16
|
+
//UIImageViewの生成
|
17
|
-
|
17
|
+
UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"http://cdn.qiita.com/assets/siteid-reverse-afd514cf9dada4652217c56e963cb7b1.png"]];
|
18
|
-
[_tableView setImage:myImage forState:UIControlStateNormal];
|
19
|
-
|
18
|
+
imageView.frame = CGRectMake(0, 0, 100, 100);
|
20
|
-
|
19
|
+
imageView.center = CGPointMake(160, 240);
|
20
|
+
imageView.tag = 10;
|
21
|
-
[
|
21
|
+
[self.view addSubview:imageView];
|
22
22
|
```
|
23
23
|
|
24
24
|
としてみましたが画像が表示されません。
|
@@ -28,4 +28,6 @@
|
|
28
28
|
画像1 テキスト画像 画像2
|
29
29
|
の様に表示したいと考えています。
|
30
30
|
|
31
|
-
よろしくお願いします。
|
31
|
+
よろしくお願いします。
|
32
|
+
|
33
|
+
※入力したソースを修正しました。
|