{"action":"created","issue":{"url":"https://api.github.com/repos/MPGNotification/MPGNotification/issues/39","labels_url":"https://api.github.com/repos/MPGNotification/MPGNotification/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/MPGNotification/MPGNotification/issues/39/comments","events_url":"https://api.github.com/repos/MPGNotification/MPGNotification/issues/39/events","html_url":"https://github.com/MPGNotification/MPGNotification/issues/39","id":100560029,"number":39,"title":"iconImage has no padding","user":{"login":"chrisjrex","id":4457170,"avatar_url":"https://avatars.githubusercontent.com/u/4457170?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisjrex","html_url":"https://github.com/chrisjrex","followers_url":"https://api.github.com/users/chrisjrex/followers","following_url":"https://api.github.com/users/chrisjrex/following{/other_user}","gists_url":"https://api.github.com/users/chrisjrex/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisjrex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisjrex/subscriptions","organizations_url":"https://api.github.com/users/chrisjrex/orgs","repos_url":"https://api.github.com/users/chrisjrex/repos","events_url":"https://api.github.com/users/chrisjrex/events{/privacy}","received_events_url":"https://api.github.com/users/chrisjrex/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-12T14:47:33Z","updated_at":"2015-10-02T00:32:41Z","closed_at":"2015-10-02T00:32:41Z","body":"The `iconImage` has no padding and because the `iconImageView` is not exposed I can't edit its content mode.\r\n\r\n* Solution 1:\r\nSet the default mode to __UIViewContentModeCenter__. Then it adds padding to the image. \r\n\r\n```\r\n- (void)setIconImage:(UIImage *)iconImage {\r\n    \r\n    _iconImage = iconImage;\r\n    \r\n    if (!self.iconImageView) {\r\n        self.iconImageView = [[UIImageView alloc] initWithFrame:CGRectZero];\r\n        [self.iconImageView setContentMode:UIViewContentModeCenter];\r\n        [self.backgroundView addSubview:self.iconImageView];\r\n    }\r\n    \r\n    self.iconImageView.image = iconImage;\r\n    [self setNeedsLayout];\r\n} \r\n```\r\n\r\n* Solution 2:\r\nExpose the image view or have a method to set the content mode you want."},"comment":{"url":"https://api.github.com/repos/MPGNotification/MPGNotification/issues/comments/144884294","html_url":"https://github.com/MPGNotification/MPGNotification/issues/39#issuecomment-144884294","issue_url":"https://api.github.com/repos/MPGNotification/MPGNotification/issues/39","id":144884294,"user":{"login":"toblerpwn","id":1731512,"avatar_url":"https://avatars.githubusercontent.com/u/1731512?v=3","gravatar_id":"","url":"https://api.github.com/users/toblerpwn","html_url":"https://github.com/toblerpwn","followers_url":"https://api.github.com/users/toblerpwn/followers","following_url":"https://api.github.com/users/toblerpwn/following{/other_user}","gists_url":"https://api.github.com/users/toblerpwn/gists{/gist_id}","starred_url":"https://api.github.com/users/toblerpwn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toblerpwn/subscriptions","organizations_url":"https://api.github.com/users/toblerpwn/orgs","repos_url":"https://api.github.com/users/toblerpwn/repos","events_url":"https://api.github.com/users/toblerpwn/events{/privacy}","received_events_url":"https://api.github.com/users/toblerpwn/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T00:32:39Z","updated_at":"2015-10-02T00:32:39Z","body":"hi @chrisjrex - this is fixed in 6bcaaca8da147f85a2f54bbc3515fcd2f6f49b9e. I'm not sure when this issue got introduced (or maybe it was missed in testing somehow?), but there is now the expected (5px) padding before the text / trailing the icon image."}}