I have a category on UIImage
that is written in Objective-C. The following are some example methods. How do I call these methods in Swift?
+(UIImage *) imageOrPDFNamed:(NSString *)resourceName;
+(UIImage *) imageWithPDFNamed:(NSString *)resourceName;
I have tried the following and it does not recognize the methods:
let image = UIImage(imageOrPDFNamed:"test.pdf")
let image = UIImage(PDFNamed:"test.pdf")
UIImage.image...
– Michellemichels#import
ed the category's header in your bridging header. – Throng