回答編集履歴

2

プロパティ名の誤りを修正

2017/05/28 22:06

投稿

Bongo
Bongo

スコア10807

test CHANGED
@@ -26,4 +26,4 @@
26
26
 
27
27
 
28
28
 
29
- ※このプロパティへの変更はアニメートできる(つまりアニメーション系メソッドなどでtransformを書き換えてのアニメーションが可能)。しかし、transformが非恒等変換である場合、frameプロパティの値は未定義であり変更すべきでない。そのようなケースでは、代わりにビューのcenterプロパティで移動、boundsプロパティでサイズ調整できる...のような意味でしょうか。
29
+ ※このプロパティへの変更はアニメートできる(つまりアニメーション系メソッドなどでframeを書き換えてのアニメーションが可能)。しかし、transformが非恒等変換である場合、frameプロパティの値は未定義であり変更すべきでない。そのようなケースでは、代わりにビューのcenterプロパティで移動、boundsプロパティでサイズ調整できる...のような意味でしょうか。

1

参考サイトの引用部分を追記

2017/05/28 22:06

投稿

Bongo
Bongo

スコア10807

test CHANGED
@@ -3,3 +3,27 @@
3
3
 
4
4
 
5
5
  参考:[frame - UIView | Apple Developer Documentation](https://developer.apple.com/reference/uikit/uiview/1622621-frame)
6
+
7
+
8
+
9
+ [追記]
10
+
11
+ 該当部分の抜粋が推奨されるとのことで、リファレンスの引用を追記します。
12
+
13
+
14
+
15
+ > Warning
16
+
17
+ > If the transform property is not the identity transform, the value of this property is undefined and therefore should be ignored.
18
+
19
+
20
+
21
+ ※transformプロパティが恒等変換でない場合(要するに何らかの移動・回転・伸縮・剪断が行われている場合)、このプロパティの値は未定義であるので、無視するべきである...のような意味でしょうか。
22
+
23
+
24
+
25
+ > Changes to this property can be animated. However, if the transform property contains a non-identity transform, the value of the frame property is undefined and should not be modified. In that case, you can reposition the view using the center property and adjust the size using the bounds property instead.
26
+
27
+
28
+
29
+ ※このプロパティへの変更はアニメートできる(つまりアニメーション系メソッドなどでtransformを書き換えてのアニメーションが可能)。しかし、transformが非恒等変換である場合、frameプロパティの値は未定義であり変更すべきでない。そのようなケースでは、代わりにビューのcenterプロパティで移動、boundsプロパティでサイズ調整できる...のような意味でしょうか。