CNContactViewController丢弃消息Xamarin

时间:2020-11-04 16:55:20

标签: ios xamarin localization cncontactviewcontroller

我有与此帖子中描述的问题相同的问题

CNContactViewController iOS 13 Discard Message and Keyboard

但是我正在使用xamarin 并且我添加了Localizable.strings这样的:

enter image description here

和该文件中的内容:

enter image description here

无论如何,我仍然无法使它起作用,并且上面的链接中接受的答案对我不起作用。

我在做什么错了?

UPD:

问题在于,丢弃操作表的文本看起来像这样,并且不可读。将Localizable.strings添加到Base.lproj并没有帮助

enter image description here

1 个答案:

答案 0 :(得分:0)

好的,经过长时间的搜索,我找到了解决方法。

为使其正常工作,我已将其添加到xamarin官方文档中描述的info.plist值中。 https://docs.microsoft.com/en-us/xamarin/ios/app-fundamentals/localization/

enter image description here

,现在可以正常使用了。但这不是显而易见的解决方案

PS:将来,亲爱的评论员,不要以这种方式回答:“我创建了一个新项目,只是打开了CNContactViewController,一切都在我这一边很好。我无法重现该问题”-它没有带来任何有用的信息。没有答案总比这样的答案好。