0

是否可以在 iPhone 6s 上的 iOS 9 上将力应用于屏幕的一部分?

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

4

1 回答 1

0

在看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 }
于 2015-10-27T14:51:37.277 回答