Fix URI detection

This commit is contained in:
Sebastián Katzer 2019-03-01 12:02:38 +01:00
parent 395ccaf9f1
commit 02d54a063f

View File

@ -47,7 +47,7 @@
*/ */
+ (BOOL) canPrintURL:(nullable NSString *)url + (BOOL) canPrintURL:(nullable NSString *)url
{ {
if (![NSURL URLWithString:url]) if (![NSURL URLWithString:url].scheme)
{ {
return UIPrintInteractionController.isPrintingAvailable; return UIPrintInteractionController.isPrintingAvailable;
} }