回答編集履歴
1
修正
answer
CHANGED
@@ -6,7 +6,21 @@
|
|
6
6
|
|
7
7
|
// iPhone6の場合
|
8
8
|
NSLog(@"screenWidth = %f",screenWidth);
|
9
|
-
// screenWidth = 375.000000
|
9
|
+
//=> screenWidth = 375.000000
|
10
10
|
NSLog(@"screenHeight = %f",screenHeight);
|
11
|
-
// screenHeight = 667.000000
|
11
|
+
//=> screenHeight = 667.000000
|
12
|
+
|
13
|
+
|
14
|
+
// ScrollViewのスクロール位置
|
15
|
+
CGPoint scrollPoint = _scrollView.contentOffset;
|
16
|
+
NSLog(@"scrollPoint.x = %f, scrollPoint.y = %f",scrollPoint.x, scrollPoint.y);
|
17
|
+
//=> scrollPoint.x = 200.000000, scrollPoint.y = 0.000000
|
18
|
+
|
19
|
+
|
20
|
+
// TableViewのスクロール位置
|
21
|
+
CGPoint tablePoint = _tableView.contentOffset;
|
22
|
+
|
23
|
+
// TableViewの幅
|
24
|
+
CGFloat tableWidth = CGRectGetWidth(_tableView.frame);
|
25
|
+
|
12
26
|
```
|