<legend id='jqRk6'><style id='jqRk6'><dir id='jqRk6'><q id='jqRk6'></q></dir></style></legend>

    1. <tfoot id='jqRk6'></tfoot>
      <i id='jqRk6'><tr id='jqRk6'><dt id='jqRk6'><q id='jqRk6'><span id='jqRk6'><b id='jqRk6'><form id='jqRk6'><ins id='jqRk6'></ins><ul id='jqRk6'></ul><sub id='jqRk6'></sub></form><legend id='jqRk6'></legend><bdo id='jqRk6'><pre id='jqRk6'><center id='jqRk6'></center></pre></bdo></b><th id='jqRk6'></th></span></q></dt></tr></i><div id='jqRk6'><tfoot id='jqRk6'></tfoot><dl id='jqRk6'><fieldset id='jqRk6'></fieldset></dl></div>
      1. <small id='jqRk6'></small><noframes id='jqRk6'>

        • <bdo id='jqRk6'></bdo><ul id='jqRk6'></ul>

        旋转触摸视图

        时间:2023-05-18
          <tbody id='VAQTS'></tbody>
        <tfoot id='VAQTS'></tfoot>

                <bdo id='VAQTS'></bdo><ul id='VAQTS'></ul>
              • <small id='VAQTS'></small><noframes id='VAQTS'>

              • <legend id='VAQTS'><style id='VAQTS'><dir id='VAQTS'><q id='VAQTS'></q></dir></style></legend>

                  <i id='VAQTS'><tr id='VAQTS'><dt id='VAQTS'><q id='VAQTS'><span id='VAQTS'><b id='VAQTS'><form id='VAQTS'><ins id='VAQTS'></ins><ul id='VAQTS'></ul><sub id='VAQTS'></sub></form><legend id='VAQTS'></legend><bdo id='VAQTS'><pre id='VAQTS'><center id='VAQTS'></center></pre></bdo></b><th id='VAQTS'></th></span></q></dt></tr></i><div id='VAQTS'><tfoot id='VAQTS'></tfoot><dl id='VAQTS'><fieldset id='VAQTS'></fieldset></dl></div>
                  本文介绍了旋转触摸视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我必须在手指触摸时循环旋转视图......我的意思是像拨打旧电话号码......并且触摸应该只在角落......任何人都可以帮助我......我有尝试了很多...但没有成功

                  I have to rotate a view circularly on finger touch...I mean like dialing the old phones number...and the touch should be only on corners.....can any one help me...i have tried it a lot...but was not successes

                  推荐答案

                  您需要在要旋转的视图上定义 UIRotationGestureRecognize,然后添加选择器方法并像这样实现它.

                  You need to define the UIRotationGestureRecognize on the view that you want to rotate and than add a selector method and implement it like this.

                  给你添加这个viewDidLoad方法

                  UIRotationGestureRecognizer *rotate = [[UIRotationGestureRecognizer alloc] initWithTarget:self action:@selector(rotation:)];
                  
                  [myUIViewObject addGestureRecognizer:rotate];
                  
                  [rotate release];
                  

                  然后实现方法.

                  - (void) rotation:(UIRotationGestureRecognize *) sender
                  {
                      CGAffineTransform myTransform = CGAffineTransformMakeRotation(sender.rotation);
                      sender.view.transform = myTransform;
                  }
                  

                  PS.myUIViewObject 可以是您想要旋转的任何 UIView 对象.

                  PS. myUIViewObject can be any UIView Object that you want to rotate.

                  你会在这里找到很多关于这方面的信息:

                  you will find a lot of information on this here:

                  http://www.iphonedevsdk.com/forum/iphone-sdk-development/49847-how-find-angle-two-points.html

                  这篇关于旋转触摸视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:围绕圆圈旋转图像? 下一篇:iphone Animation:为什么围绕 X 轴旋转 UILabel 会切断它的下半部分?

                  相关文章

                    <i id='FhOTE'><tr id='FhOTE'><dt id='FhOTE'><q id='FhOTE'><span id='FhOTE'><b id='FhOTE'><form id='FhOTE'><ins id='FhOTE'></ins><ul id='FhOTE'></ul><sub id='FhOTE'></sub></form><legend id='FhOTE'></legend><bdo id='FhOTE'><pre id='FhOTE'><center id='FhOTE'></center></pre></bdo></b><th id='FhOTE'></th></span></q></dt></tr></i><div id='FhOTE'><tfoot id='FhOTE'></tfoot><dl id='FhOTE'><fieldset id='FhOTE'></fieldset></dl></div>
                    • <bdo id='FhOTE'></bdo><ul id='FhOTE'></ul>

                  1. <tfoot id='FhOTE'></tfoot>

                  2. <small id='FhOTE'></small><noframes id='FhOTE'>

                    1. <legend id='FhOTE'><style id='FhOTE'><dir id='FhOTE'><q id='FhOTE'></q></dir></style></legend>