質問編集履歴

1

詳細の追加

2016/03/24 08:04

投稿

sweden1
sweden1

スコア59

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,36 @@
1
- サイズの異なるiPhoneのサイズを取得し、画面にあっサイズでオブジェクトを表示したいのですがコードがわかりません
1
+ サイズの異なるiPhoneのサイズを取得したいのですが、うくいきません
2
+
3
+
4
+
5
+ Class ------
6
+
7
+ struct UIScreenUtil {
8
+
9
+ static func bounds()->CGRect{
10
+
11
+ return UIScreen.mainScreen().bounds;
12
+
13
+ }
14
+
15
+ static func screenWidth()->Int{
16
+
17
+ return Int( UIScreen.mainScreen().bounds.size.width);
18
+
19
+ }
20
+
21
+ static func screenHeight()->Int{
22
+
23
+ return Int(UIScreen.mainScreen().bounds.size.height);
24
+
25
+ }
26
+
27
+ }
28
+
29
+ @IBAction----
30
+
31
+ Let ----
32
+
33
+
2
34
 
3
35
 
4
36