我在iPad上有一个教学应用程序,iPad固定在桌子上。一边是老师,另一边是学生。我希望老师进行他/她可以正常读取的设置操作,然后拥有整个显示翻转,以便学生可以正常阅读。
您必须使用UIGestureRecognizer
交换视图时可以颠倒,反之亦然 有关更多信息,请阅读本文http://www.techotopia.com/index.php/Identifying_iPhone_Gestures_using_iOS_4_Gesture_Recognizers_(Xcode_4)
http://mobiledevelopertips.com/event-handling/gestures-recognizers-tap-pinchzoom-rotate-swipe-pan-long-press.html
http://www.icodeblog.com/2010/10/14/working-with-uigesturerecognizers/
享受这个可能会帮助你分配快乐的溺爱:)
编辑您可以参考我的问题,这个答案可以帮助您分配 看到接受的答案问题是如何显示倾斜的图像视图?
是的,这是可能的。你可以使用CABasicAnimation来做到这一点-
CABasicAnimation* rotationAnimation = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"];
rotationAnimation.toValue = // To extent that you want.
还有其他几种方法可以实现此目的。