Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

View service did terminate with error after preparing itself Error Domain=_UIViewServiceErrorDomain

$
0
0

When I add a UITextView that detects a address, phone or email. it gets extra ui automatically. so if i long press a detected address for example i get a popup that has the following.

Open in Maps Add to Contacts Copy

Cancel

All of this works fine except for if you hit add to contacts. If you click this it opens a screen walking you thru adding that address as a contact. if you hit cancel or try to complete this step it throws the following error and crashes the app

View service did terminate with error after preparing itself Error Domain=_UIViewServiceErrorDomain Code=1 "The operation couldn’t be completed. (_UIViewServiceErrorDomain error 1.)"

Im my test app this just is displayed in the log but in my actual app it crashes instantly no stack trace.

some basic googling mentions this means it needs a completion handler. but I can't find any documentation on how or were to add a completion handle. has anyone run into this issue?

here is a test app https://dl.dropboxusercontent.com/u/5315821/TestProject.zip

this dosen't crash but you get the error in the console.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>