Xcode 9 beta 6,iOS 11
I downloaded a Instagram logo which was a .png file,and I created a UIButton and UIImageView in the Main.storyboard.The logo image was set as follows:

And I set the TintColor of the UIButton and the UIImageView is white,but when I run the project, the color of the image for UIImageView is still black,while white for UIButton.
imageView setting:


Why it is black for
imageViewand white forbuttonwith the same setting of the image? Thanks.
Additional remarks:
When I used code to add the subview imageView,it worked well.Really werid!

I set global tintColor in AppDelegate.
I was not getting proper tint color on iOS 13 Xcode 11 in dark mode. However, same image tint color appeared correct when set fora bar button.
I resolved it by setting Render As property of the image as Template Image in images.xcassets. I neither had to remove UIImageView in storyboard nor add again or adding user defined property.
Problem still exists in Xcode 9.4.1
Setting desired color for tintColor in User Defined Runtime Attributes help me to fix this problem:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With