【发布时间】:2010-05-24 10:04:09
【问题描述】:
我想在转动的方向上旋转 uiimage,我可以得到 touchesBegan 和 TouchesEnd 点之间的角度,但是我应该如何决定是顺时针旋转还是逆时针旋转? 请帮忙
【问题讨论】:
标签: iphone uiimageview rotation
我想在转动的方向上旋转 uiimage,我可以得到 touchesBegan 和 TouchesEnd 点之间的角度,但是我应该如何决定是顺时针旋转还是逆时针旋转? 请帮忙
【问题讨论】:
标签: iphone uiimageview rotation
获取设备的当前方向并根据需要旋转。
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
orientation 是 UIDeviceOrientationLandscapeLeft 和 UIDeviceOrientationLandscapeRight 如果设备是横向的。
【讨论】: