Tag: 界限

边界的中心

我有一个全屏的UIScrollView来显示我的图像,它采用从苹果示例代码从PhotoScroller.app一些代码。 我对获得imageScrollView边界的中心点有点困惑。 ImageScrollView.m – (CGPoint)pointToCenterAfterRotation { NSLog(@"imageScrollView frame X and Y are %f and %f ",self.frame.origin.x, self.frame.origin.y); NSLog(@"imageScrollView frame Width and Height are %f and %f ",self.frame.size.width, self.frame.size.height); NSLog(@"imageScrollView bounds origin X and Y are %f and %f ",self.bounds.origin.x, self.bounds.origin.y); NSLog(@"imageScrollView bounds Width and Height are %f and %f ",self.bounds.size.width, self.bounds.size.height); NSLog(@"imageView frame origin X […]