-(UIImage *) imagePDFNamed:(NSString *)resourceName ;
swift调用方式:
UIImage.init().imagePDFNamed("xx")
+(UIImage *) imageOrPDFNamed:(NSString *)resourceName ;
swift调用方式:
UIImage(orPDFNamed: "xx")
注意:通过 UIImage.imageOrxx 方式调用是没有任何方法提示的!!!😓
点语法调用:
示例:
+(int) imageOrPDFNamedInt:(NSString *)resourceName ;
swift调用方式:
UIImage.imageOrPDFNamedInt("xx")