0
我想实现一个CustomKeyboard作为一个应用程序扩展到我的iOS设备上点击一个按钮的确切位置。我需要的是按钮上的确切点击位置。有些用户可能会点击一些边缘,而有些则在按钮中间点击右键。 有没有办法不做到这一点?是否有可能得到一个iOS的代码(SWIFT)
我试图把它写在斯威夫特但Objective-C的是确定太
Getting the coordinates from the location I touch the touchscreen提到了类似的事情,但我需要从按钮的事件,而不是一些图像坐标。 史蒂夫的联系似乎是答案寿。我会尝试一个。由于 我
http://stackoverflow.com/questions/7374937/uibutton-touchupinside-touch-location – Steve
http://stackoverflow.com/questions/26829295/swift-getting-the-coordinates-from-the-location-i点触摸最触摸屏 –