标签: force-touch

如何从iOS Xcode Simulator中删除应用程序?

为了以防万一,我们可以通过重置内容和设置来删除应用程序,但也可以从Xcode 7中的模拟器中删除单个应用程序.Xcode 8中不是这种情况.如何实现?我有一个强制触摸触控板,是否会影响从模拟器中删除应用程序?

force-touch ios10 xcode8-beta3

59
推荐指数
6
解决办法
2万
查看次数

在UITableViewCell Objective C Code上进行3D Touch Peek和Pop.(强制触摸)

我需要使用Force Touch在Objective C中启用Peek And Pop功能UITableViewCell.并且还需要在默认邮件应用程序的窥视视图下显示一些操作.我是iOS新手,请帮助我到达那里.

iphone objective-c ios 3dtouch force-touch

8
推荐指数
1
解决办法
2311
查看次数

在XCUITest中强制触摸/ 3D触摸

我正在尝试为iOS应用程序添加强制触摸自动化.我查看了Apple文档中的相同问题,但找不到任何有用的东西.我们可以通过辅助触摸进行力量触摸,但我正在寻找像tap()动作一样简单的东西.我们可以使用forceTouch吗?

任何帮助将不胜感激.谢谢!

ui-automation ios swift force-touch xcuitest

8
推荐指数
1
解决办法
795
查看次数

iPhone 6s +上没有3D Touch功能

我想在我的应用程序中添加3d touch.我试图让用户在UITableViewCell上使用强制触摸,如此项目中所示.我正在运行此代码:

if traitCollection.forceTouchCapability == UIForceTouchCapability.Available {
    registerForPreviewingWithDelegate(self, sourceView: view)
} else {
    print("unavailable")
}
Run Code Online (Sandbox Code Playgroud)

我试过在iPhone 6s +上运行它,但我在日志中收到"不可用".为什么我不能在支持3d touch的设备上使用3d touch?谢谢你的帮助.

ios swift force-touch

3
推荐指数
1
解决办法
691
查看次数

Apple 是否已弃用 Swift 中的 iPhone 3D touch?

两年前我使用 Swift 中的 3D 触摸功能制作了一款游戏,因为它很新,但我从未发布过这款游戏,因为我得到了一份新合同。现在我有时间发布它,但代码不再起作用。(3D 触摸自定义动作,而不是 peek & pop 动作)

当我打印触摸结果时,力值将始终返回 0.0,如下所示:

[<UITouch: 0x102613850> phase: Began tap count: 2 force: 0.000 window: <UIWindow: 0x10222bf70; frame = (0 0; 414 896); gestureRecognizers = <NSArray: 0x28011cde0>; layer = <UIWindowLayer: 0x280f41840>> view: <UIView: 0x102083080; frame = (0 82; 414 780); autoresize = RM+BM; gestureRecognizers = <NSArray: 0x2801a0c30>; layer = <CALayer: 0x280f2a540>> location in window: {299.33332824707031, 661.66665649414062} previous location in window: {299.33332824707031, 661.66665649414062} location in view: {299.33332824707031, 579.66665649414062} previous location in view: {299.33332824707031, 579.66665649414062}] …

iphone ios 3dtouch force-touch

0
推荐指数
1
解决办法
486
查看次数