Using PDFs for icon images in Xcode 7.2
问题 I'm attempting to use PDF files as icons in an app I'm working on. The issue I'm encountering is I'm getting inconsistent tint colors. If I set a button image from interface builder, the icon image shows up black at runtime. Every time. Regardless of what I attempt to set from interface builder. I tried setting my button icon image via code and instead of showing up black , it's white : let myGraphicFile = UIImage(named: "myPDFImage") let myButtonImage = myGraphicFile?.imageWithRenderingMode