&tag(UIView);
*目次 [#l81aad26]
#contents
*参考情報 [#y1864817]


*Tips [#nfd61366]
**frameとboundsの違いってなに? [#ae15a2e1]
-frameが親から見たときの矩形。boundsがローカル。
-[[[iPhone] UIView の frame と bounds の違い | Sun Limited Mt.:http://blog.syuhari.jp/archives/2072]]
**convertRectって何? [#u954e482]
-[[ios - Understand convertRect:toView:, convertRect:FromView:, convertPoint:toView: and convertPoint:fromView: methods - Stack Overflow:http://stackoverflow.com/questions/8465659/understand-convertrecttoview-convertrectfromview-convertpointtoview-and]]にある以下のコードが分かりやすい。
 CGPoint originInSuperview = [superview convertPoint:CGPointZero fromView:subview];
-subviewにおける(0, 0)は、superviewにおける、subviewの原点の位置、例えば(10, 20)とかになる。

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS