我正在阅读Xamarin Hello.iOS教程,尝试完成以下步骤6和7时出现问题...
问题是当我从导航控制器执行Ctrl +拖动到视图控制器时。他们提到的Pop不会保持打开状态,所以我无法选择Root。
我在macOS Sierra 10.12.1上,问题似乎发生在Xamarin Studio和Visual Studio for Mac上。
=== Xamarin Studio Community ===
Version 6.1.2 (build 44)
Installation UUID: c2228d3d-9182-421f-ac39-c5cbd1dba547
Runtime:
Mono 4.8.0 (mono-4.8.0-branch/902b4a9) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 408000371
=== NuGet ===
Version: 3.4.3.0
=== Xamarin.Profiler ===
Not Installed
=== Apple Developer Tools ===
Xcode 8.1 (11544)
Build 8B62
=== Xamarin.Mac ===
Version: 2.10.0.113 (Xamarin Studio Community)
=== Xamarin.Android ===
Version: 7.0.2.37 (Xamarin Studio Community)
Android SDK: /Users/[NAME]/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25
SDK Build Tools Version: 23.0.2
Java SDK: /usr
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Android Player ===
Version: 0.6.5
Location: /Applications/Xamarin Android Player.app
=== Xamarin.iOS ===
Version: 10.2.1.5 (Xamarin Studio Community)
Hash: 44931ae
Branch: xcode8.1
Build date: 2016-11-01 20:52:28-0400
=== Xamarin Inspector ===
Version: 1.0.0.0
Hash: 1f3067d
Branch: master
Build date: 11/15/2016 4:13:59 PM
=== Build Information ===
Release ID: 601020044
Git revision: 0ccfcd52b95305ebd5b7eca0d88c1017035910ae
Build date: 2016-10-28 15:12:43-04
Xamarin addins: a39a869d8a78d87bdc6775f696c13a4cc9024501
Build lane: monodevelop-lion-cycle8
=== Operating System ===
Mac OS X 10.12.1
Darwin MacBook-Pro-2.local 16.1.0 Darwin Kernel Version 16.1.0
Thu Oct 13 21:26:57 PDT 2016
root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
=== Enabled user installed addins ===
Xamarin Inspector 1.0.0.0
=== Visual Studio for Mac Preview ===
Version Preview 1 (7.0 build 347)
Installation UUID: 2e3e4d33-9cc1-4fc5-ab9f-144375f26842
Runtime:
Mono 4.8.0 (mono-4.8.0-branch/902b4a9) (64-bit)
GTK+ 2.24.23 (Raleigh theme)
Package version: 408000371
=== NuGet ===
Version: 3.6.0.0
=== Xamarin.Profiler ===
Not Installed
=== Apple Developer Tools ===
Xcode 8.1 (11544)
Build 8B62
=== Xamarin.Android ===
Version: 7.0.2.37 (Visual Studio Enterprise)
Android SDK: /Users/[NAME]/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
6.0 (API level 23)
SDK Tools Version: 25.2.3
SDK Platform Tools Version: 25
SDK Build Tools Version: 23.0.2
Java SDK: /usr
java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
=== Xamarin Android Player ===
Version: 0.6.5
Location: /Applications/Xamarin Android Player.app
=== Xamarin.iOS ===
Version: 10.2.1.5 (Visual Studio Enterprise)
Hash: 44931ae
Branch: xcode8.1
Build date: 2016-11-01 20:52:28-0400
=== Xamarin.Mac ===
Version: 2.10.0.113 (Visual Studio Enterprise)
=== Build Information ===
Release ID: 700000347
Git revision: 8a8ea655a444b373df6b0a7aaca6092e06c2dddc
Build date: 2016-11-16 07:50:02-05
Xamarin addins: 94517e1a183199eb12a020da231abc5007f6cce5
Build lane: monodevelop-vNext-preview
=== Operating System ===
Mac OS X 10.12.1
Darwin MacBook-Pro-2.local 16.1.0 Darwin Kernel Version 16.1.0
Thu Oct 13 21:26:57 PDT 2016
root:xnu-3789.21.3~60/RELEASE_X86_64 x86_64
答案 0 :(得分:9)
不幸的是,这似乎是触控板上 Force Touch 功能的问题。如果您禁用强制点击和触觉反馈,它应该按预期工作。无论如何,这对我来说是固定的。我很惊讶Xamarin /微软还没有解决这个问题。
转到系统偏好设置> 触控板> 点&点击并取消选中强制点击和触觉反馈。 这也被问到here。
答案 1 :(得分:1)
我遇到了同样的问题,从MacOS Sierra和VS for Mac。对我有用的唯一技巧是使用鼠标而不是触控板...... 这样,上下文菜单保持打开状态,我可以设置导航。