質問編集履歴
1
詳細の追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,19 @@
|
|
1
|
-
サイズの異なるiPhoneのサイズを取得し
|
1
|
+
サイズの異なるiPhoneのサイズを取得したいのですが、うまくいきません
|
2
2
|
|
3
|
+
Class ------
|
4
|
+
struct UIScreenUtil {
|
5
|
+
static func bounds()->CGRect{
|
6
|
+
return UIScreen.mainScreen().bounds;
|
7
|
+
}
|
8
|
+
static func screenWidth()->Int{
|
9
|
+
return Int( UIScreen.mainScreen().bounds.size.width);
|
10
|
+
}
|
11
|
+
static func screenHeight()->Int{
|
12
|
+
return Int(UIScreen.mainScreen().bounds.size.height);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
@IBAction----
|
16
|
+
Let ----
|
17
|
+
|
18
|
+
|
3
19
|
教えていただけると幸いです
|