SafariViewController shows blank page when using UIImageRenderingModeAlwaysTemplate

Originator:gomfucius
Number:rdar://23830188 Date Originated:12/9/2015
Status:Closed Resolved:Closed as Duplicate
Product:iOS SDK Product Version:iOS 9.1
Classification: Reproducible:Always
 
Summary:
SafariViewController shows blank page when using UIImageRenderingModeAlwaysTemplate

Steps to Reproduce:
Use this code to reproduce:
   
 UIImage *image = [[UIImage imageNamed:@"someimage"] imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
    [[UIBarButtonItem appearance] setBackgroundImage:image forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    SFSafariViewController *viewController = [[SFSafariViewController alloc] initWithURL:[NSURL URLWithString:@"http://www.apple.com"]];
    [self presentViewController:viewController animated:YES completion:nil];

Expected Results:
Shows contents in SFSafariViewController

Actual Results:
SFSafariViewController shows blank page

Version:
iOS 9.1

Notes:


Configuration:
iPhone Simulator

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!