Can the iPhone detect the size of a touch?

后端 未结 4 1918
陌清茗
陌清茗 2021-02-01 10:17

As far as I can tell the iPhone multitouch framework sends the location of each touch but not the size.

I want to allow the user to tap a button with the tip of their th

4条回答
  •  难免孤独
    2021-02-01 10:25

    All these answers are wrong. The fact that Apple doesn't appear to sanction this in apps on the store is a different matter.

     float vf = 10.0; 
     id valFloat = [thisTouch valueForKey:"pathMajorRadius"]; 
     if(valFloat != nil) {
       vf = [valFloat floatValue]; 
     }
    

    I really wish that this issue would get pushed harder by users and developers.

提交回复
热议问题