Is there any way at all that I can tell how hard the screen is being pressed

前端 未结 4 2133
谎友^
谎友^ 2020-11-30 22:11

I want to find the pressure of the touch. I just don\'t know how to accomplish that result with out jailbreaking it and getting the raw touch data. Does anyone know How I wo

4条回答
  •  Happy的楠姐
    2020-11-30 22:33

    As of iOS 8.0, UITouch has a public majorRadius property which tells you the approximate size of the touch.

提交回复
热议问题