是否可以在 iPhone 6s 上的 iOS 9 上将力应用于屏幕的一部分?
可以访问实例的force
属性。UITouch
还有其他方法吗?
在看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 }