【发布时间】:2010-09-03 10:39:57
【问题描述】:
请有人帮助我尝试进行简单的转换...
下面的代码将缩略图图像放大到填满屏幕的图像。问题是缩略图没有居中(它向右偏移),因此缩放实际上需要将图像向左移动,因为它放大了。
[fullsizeImageButton setTransform:CGAffineTransformMakeScale(.5,.5)];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.9]; fullsizeImageButton.transform = CGAffineTransformMakeScale(1,1);
[UIView 提交动画];
提前感谢您的帮助
【问题讨论】:
标签: iphone objective-c