For my application, I need to know if there is an email account soon after launching the application. Is there any way to do this?
I really don't know what canSendMail does, but it doesn't seem to check.
thanks
canSendMail is actually the right and only way to verify what you want.
if ([MFMailComposeViewController canSendMail]) { // device is configured to send mail }
For those looking for a Xamarin solution, it is available as a static property, so you can do it something like this:
MFMailComposeViewController.CanSendMail
Source: https://habr.com/ru/post/894491/More articles:How to access instance methods in the documentation? - objectSorting an array into a dictionary - sortingHow to enter the correct dependency based on the name of the constructor parameter - c #Why does Bitmap invoke the CA2000 rule, but the image does not work? - c #MySQL database error: packages exceeding max_allowed_packet are not allowed - during insertion - mysqlin ruby, why not defined? work as you would expect when used with - ruby | fooobar.comXcode 4 and the wrong "semantic problems" - how to deal with them? - compiler-warningsHow can I create an arbitrary size of an html element with partially transparent borders? - htmlHow to set SQL mode when using PDO? - phpadding a simple library to an xcode 4 project - xcodeAll Articles