如何在carplay模拟器中启用触摸

时间:2018-12-24 13:45:43

标签: ios uitableview

我正在CarPlay模拟器上运行我的应用程序,但它不支持任何触摸,也没有显示标签栏。我添加了com.apple.developer.playable-content权利。是否需要添加其他任何权利才能在CarPlay模拟器上进行触摸操作。仅供参考,默认的消息应用程序可以通过触摸进行操作。

1 个答案:

答案 0 :(得分:0)

经过几天的努力。我终于开始工作了。

1)在项目中设置权利

<key>com.apple.developer.carplay-protocols</key> <array> <string>com.brand.carplay.feature</string> </array>

2)激活终端中的CarPlay窗口

defaults write com.apple.iphonesimulator CarPlay -bool YES

3)激活其他选项

defaults write com.apple.iphonesimulator CarPlayExtraOptions -bool YES

4)将您的CarPlay协议添加到iPhone模拟器

defaults write com.apple.iphonesimulator CarPlayProtocols -array-add com.brand.carplay.feature

您应该清除项目并从iOS Simulator中删除应用程序。之后-触摸屏和UITabBarController在我的应用程序中正常工作。