문제

In Apple Photos App, when it is rotated from portrait to landscape. The image will rotate on its center point. However, the photo app created myself just not rotate on the center point.

The structure is like this.. enter image description here

When it rotates to landscape.. it will look like following enter image description here

And Then I'll tile the pages(ImageScrollView) in

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation

is there anyone know how to make it rotate on the center of screen?

도움이 되었습니까?

해결책

Ushan87 Thanks..

Found the answer.. set the image frame must be done in

- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;

and the view will rotate on it's center

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top