UIBarButtonItem with animated image doesn't respect tint color

Originator:kim.ahlberg
Number:rdar://23794402 Date Originated:07-Dec-2015
Status:Duplicate/15436883 Resolved:26-Jul-2016
Product:iOS SDK Product Version:9.1
Classification: Reproducible:
 
A UIBarButtonItem with the image set to an animated image doesn't respect the tint color.

Steps to Reproduce:
When implementing the code below, and all images being set to render as template images in the asset catalog, the animation still uses the images original color.

--- CODE EXAPLE ---
UIImage *imageSequence = [UIImage animatedImageWithImages:@[
[UIImage imageNamed:@"frame1"],
[UIImage imageNamed:@"frame2"],
[UIImage imageNamed:@"frame3"]
] duration:0.4];

myBarButtonItem.image = imageSequence;
--- CODE EXAMPLE ---

Expected Results:
The animating bar button item should be drawn using the tint color.

Actual Results:
The animating bar button item does not respect the tint color.

Version:
iOS 9.1, Xcode 7.1.1

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!