0

我在 iPad 上有一个教学应用程序,iPad 固定在桌子上。一边是老师,一边是学生。我希望老师进行他/她可以正常阅读的设置操作,然后让整个显示翻转,以便学生可以正常阅读。

4

2 回答 2

1

是的,这是可能的,因为您必须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/

享受这可能会帮助您分配快乐的编码:)

编辑 您可以参考我的问题,这个问题的答案可以帮助您分配看到已接受的答案问题是如何显示倾斜的图像视图?

于 2012-05-09T05:31:49.450 回答
0

是的,这是可能的。您可以为此使用 CABasicAnimation -

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

还有其他几种方法可以实现这一目标。

于 2012-05-09T05:31:29.513 回答