I have a teaching app on an iPad where the iPad is fixed to the table. Teacher on one side and student on the other. I would like the teacher to make setup operations he/she can read normally and then have the entire display flip such that the student can read as normal.

2 Answers

rishi On

Yes, that is possible. You can use CABasicAnimation for this-

CABasicAnimation* rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = // To extent that you want.

There are couple of other ways to achieve this.

The iOSDev On

yes this is possible to get that type of flip for that you have to use UIGestureRecognizeron swapping the view can be flipped upside down and vice a versa for more information read this articles http://www.techotopia.com/index.php/Identifying_iPhone_Gestures_using_iOS_4_Gesture_Recognizers_(Xcode_4)



Enjoy this may help you allot happy codding :)

EDIT You can refer my question and the answer of this can help you allot see the accepted answer question is how to display imageview tilted?