UITapGestureRecognizer locationPoint在不同的设备上

当我点击图像上的某处时,我想获取位置点。问题取决于我无法获得相同坐标的设备/分辨率(iphone,ipad等)。

我正在寻找一种获取相同位置的方法,而与设备/分辨率无关。

Private Sub CommandButton2_Click()
    Dim iCtr As Long
    For iCtr = 0 To Me.ListBox1.ListCount - 1
        If Me.ListBox1.Selected(iCtr) = True Then
            Me.ListBox2.AddItem Me.ListBox1.List(iCtr)
        End If
    Next iCtr

    For iCtr = Me.ListBox1.ListCount - 1 To 0 Step 1
        If Me.ListBox1.Selected(iCtr) = True Then
            Me.ListBox1.RemoveItem iCtr
        End If
    Next iCtr
End Sub
cheng4799 回答:UITapGestureRecognizer locationPoint在不同的设备上

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2563235.html

大家都在问