{"action":"opened","issue":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/1712","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/1712/labels{/name}","comments_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/1712/comments","events_url":"https://api.github.com/repos/lionheart/openradar-mirror/issues/1712/events","html_url":"https://github.com/lionheart/openradar-mirror/issues/1712","id":98740537,"number":1712,"title":"20200040: IBDesignable - custom button image displaying wrong color in IB (and at runtime)","user":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/classification:developer%20tools","name":"classification:developer tools","color":"444444"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/reproducible:always","name":"reproducible:always","color":"5319e7"},{"url":"https://api.github.com/repos/lionheart/openradar-mirror/labels/status:open","name":"status:open","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/16","html_url":"https://github.com/lionheart/openradar-mirror/milestones/Xcode","labels_url":"https://api.github.com/repos/lionheart/openradar-mirror/milestones/16/labels","id":1237430,"number":16,"title":"Xcode","description":null,"creator":{"login":"openradar-mirror","id":13605213,"avatar_url":"https://avatars.githubusercontent.com/u/13605213?v=3","gravatar_id":"","url":"https://api.github.com/users/openradar-mirror","html_url":"https://github.com/openradar-mirror","followers_url":"https://api.github.com/users/openradar-mirror/followers","following_url":"https://api.github.com/users/openradar-mirror/following{/other_user}","gists_url":"https://api.github.com/users/openradar-mirror/gists{/gist_id}","starred_url":"https://api.github.com/users/openradar-mirror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openradar-mirror/subscriptions","organizations_url":"https://api.github.com/users/openradar-mirror/orgs","repos_url":"https://api.github.com/users/openradar-mirror/repos","events_url":"https://api.github.com/users/openradar-mirror/events{/privacy}","received_events_url":"https://api.github.com/users/openradar-mirror/received_events","type":"User","site_admin":false},"open_issues":40,"closed_issues":0,"state":"open","created_at":"2015-08-03T02:08:42Z","updated_at":"2015-08-03T13:16:02Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-08-03T13:16:02Z","updated_at":"2015-08-03T13:16:02Z","closed_at":null,"body":"#### Description\n\nSummary:\r\nIn an IBDesignable subclass of UIButton, when calling setImage: programmatically … the image is displayed with the TINT color (both in IB and at runtime).  [This is the tintColor inherited from UIView — even though the image does NOT have its .renderMode property set to Template.]\r\n\r\nWorkaround:\r\nIf the ‘image’ property is set manually in IB, then cleared, the image color returns to normal.  (This might be temporary.)\r\n\r\nSample code, from subclass \"CustomButton : UIButton”:\r\n\r\nIB_DESIGNABLE\r\n@interface CustomButton ()\r\n@property (nonatomic, strong) IBInspectable NSString *buttonStyle;\r\n@end\r\n\r\n-(void)setButtonStyle:(NSString *)styleName {\r\n    if ([styleName isEqualToString:@“play\"]) {\r\n        UIImage *foregroundImage = [UIImage imageNamed:(@“icon-play\")\r\n                       inBundle:[NSBundle bundleForClass:[self class]]\r\n                compatibleWithTraitCollection:nil];\r\n\r\n        [self setImage:foregroundImage forState:UIControlStateNormal];\r\n    }\r\n}\r\n\r\nExpected behavior:\r\nThe image should show in its true color — just as it does when the same property is set manually in IB [see screenshots].\r\n\r\nAttachments:\r\n'button-image-color1a.png' and 'button-image-color1b.png' were successfully uploaded.\n\n-\nProduct Version: 6.1.1; 6.3b3\nCreated: 2015-03-18T03:09:11.371778\nOriginated: 2015-03-17T00:00:00\nOpen Radar Link: http://www.openradar.me/20200040"}}