diff --git a/src/ios/APPPrinterInfo.m b/src/ios/APPPrinterInfo.m index d056bc8..6c71b87 100644 --- a/src/ios/APPPrinterInfo.m +++ b/src/ios/APPPrinterInfo.m @@ -21,6 +21,8 @@ #include "APPPrinterInfo.h" +#import + @implementation APPPrinterInfo #pragma mark - @@ -71,7 +73,10 @@ info.duplex = UIPrintInfoDuplexNone; } - [info setValue:[NSNumber numberWithLong:copies] forKey:@"_copies"]; + if (class_getProperty(info.class, "copies")) + { + [info setValue:[NSNumber numberWithLong:copies] forKey:@"_copies"]; + } if (jobName) {