Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/104.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 在iPhone 6s上获取屏幕特定部分的力_Ios_Swift_3dtouch - Fatal编程技术网

Ios 在iPhone 6s上获取屏幕特定部分的力

Ios 在iPhone 6s上获取屏幕特定部分的力,ios,swift,3dtouch,Ios,Swift,3dtouch,在iPhone6S的iOS9上,有可能对屏幕的一部分施加力吗 可以访问UITouch实例的force属性。还有其他方法吗?查看UITouch // Force of the touch, where 1.0 represents the force of an average touch @available(iOS 9.0, *) public var force: CGFloat { get } // Maximum possible force with this input mechan

在iPhone6S的iOS9上,有可能对屏幕的一部分施加力吗


可以访问
UITouch
实例的
force
属性。还有其他方法吗?

查看
UITouch

// Force of the touch, where 1.0 represents the force of an average touch
@available(iOS 9.0, *)
public var force: CGFloat { get }
// Maximum possible force with this input mechanism
@available(iOS 9.0, *)
public var maximumPossibleForce: CGFloat { get }

我想要的是屏幕的力量,而不是触摸。屏幕的力量是什么<代码>力将返回0到6.66之间的值(例如),测量
UITouch的“力”
是的,我知道。但我希望能够在不接触屏幕的情况下测量力。例如,用作标尺。