hello,
i want to rotate the uiimage in the direction turned, i'm able to get the angle between touchesBegan and TouchesEnd points but how should i decide whether to rotate cockwise or anti-clockwise? Plz help
hello,
i want to rotate the uiimage in the direction turned, i'm able to get the angle between touchesBegan and TouchesEnd points but how should i decide whether to rotate cockwise or anti-clockwise? Plz help
Get the current orientation of the device and rotates as you wish.
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
orientation is UIDeviceOrientationLandscapeLeft and UIDeviceOrientationLandscapeRight if the device is on landscape.