質問編集履歴
1
画像を挿入しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -76,31 +76,33 @@
|
|
76
76
|
|
77
77
|
// Do any additional setup after loading the view, typically from a nib.
|
78
78
|
|
79
|
-
|
79
|
+
|
80
80
|
|
81
|
-
|
81
|
+
// //UIImageViewの生成
|
82
82
|
|
83
|
-
|
83
|
+
UIImage *image = [UIImage imageNamed:@"mm2"];
|
84
84
|
|
85
|
+
// UIImageのサイズを取得
|
85
86
|
|
87
|
+
CGSize imageSize = image.size;
|
86
88
|
|
87
|
-
//UIImageViewの生成
|
89
|
+
// UIImageViewの生成
|
88
90
|
|
89
|
-
UIImageView *imageView = [[UIImageView alloc] initWithImage:
|
91
|
+
UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
|
90
92
|
|
91
|
-
|
93
|
+
imageView.frame = CGRectMake(0, 0, imageSize.width, imageSize.height);
|
92
94
|
|
93
|
-
imageView.center = CGPointMake(1
|
95
|
+
imageView.center = CGPointMake(170, 340);
|
94
96
|
|
95
97
|
imageView.tag = 10;
|
96
98
|
|
97
|
-
|
99
|
+
imageView.contentMode = UIViewContentModeScaleAspectFit;
|
98
100
|
|
99
|
-
imageView.
|
101
|
+
[imageView layer].masksToBounds = YES;
|
102
|
+
|
103
|
+
[imageView layer].cornerRadius = 10;
|
100
104
|
|
101
105
|
[self.view addSubview:imageView];
|
102
|
-
|
103
|
-
[imageView release];
|
104
106
|
|
105
107
|
|
106
108
|
|
@@ -161,3 +163,7 @@
|
|
161
163
|
|
162
164
|
|
163
165
|
ここにより詳細な情報を記載してください。
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
![イメージ説明](44b0b6f7948d5e9a2b59dafb74a59755.png)
|