CALayer属性anchorPoint的API中解释 Defines the anchor point of the layer's bounds rect, as a point in normalized layer coordinates - '(0, 0)' is the bottom left corner of the bounds rect, '(1, 1)' is the top right corner. Defaults to  '(0.5, 0.5)', i.e. the center of the bounds rect. Animatable.  重点是“ '(0, 0)' is the bottom left corner of the bounds rect”这句,明明测试的应该是左上角,而且看了网上好多都是说左上角,是苹果文档写错了吗

解决方案 »

  1.   

    是最左角,layer 的坐标系统和 UIView 的坐标系统不同
    http://blog.csdn.net/zhangao0086/article/details/38356691
      

  2.   


    ios游戏中的框架中的 layer 坐标系似乎是左下角的, foundation框架中 layer的坐标和view的坐标都是左上角,后来有参考英文解释,做一个合理解释大概是以坐标系为参考点来说明左下,右上,而非我们一般自认为的上下
      

  3.   


    ios游戏中的框架中的 layer 坐标系似乎是左下角的, foundation框架中 layer的坐标和view的坐标都是左上角,后来有参考英文解释,做一个合理解释大概是以坐标系为参考点来说明左下,右上,而非我们一般自认为的上下
    哪有右上这个说法?左上就是数学坐标系,别想复杂了