例えば View の中心に Layer の中心を合わせたり、View の隅に Layer の隅を合わせたりしたい場合、CALayer の anchorPoint プロパティを有効活用すると便利です。 anchorPoint は 0.0 から 1.0 までの正規化座標値(デフォルトで {0.5, 0.5} )を取り、setPosition: で Layer を配置するときの焦点を決定できます。 中央配置では、anchorPoint:{0.5, 0.5} であれば setPosition:{centerX, centerY} とすることで、{centerX - layerWidth / 2.0, centerY - layerHeight / 2.0} といった記述をしなくて済みます。 More Cocoa Programming for OS X: The Big Nerd Ranch Gu