{"action":"opened","issue":{"url":"https://api.github.com/repos/hartlco/MHCustomTabBarController/issues/27","repository_url":"https://api.github.com/repos/hartlco/MHCustomTabBarController","labels_url":"https://api.github.com/repos/hartlco/MHCustomTabBarController/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/hartlco/MHCustomTabBarController/issues/27/comments","events_url":"https://api.github.com/repos/hartlco/MHCustomTabBarController/issues/27/events","html_url":"https://github.com/hartlco/MHCustomTabBarController/issues/27","id":177794810,"number":27,"title":"Setting text to buttons?..","user":{"login":"schmidt9","id":20910077,"avatar_url":"https://avatars.githubusercontent.com/u/20910077?v=3","gravatar_id":"","url":"https://api.github.com/users/schmidt9","html_url":"https://github.com/schmidt9","followers_url":"https://api.github.com/users/schmidt9/followers","following_url":"https://api.github.com/users/schmidt9/following{/other_user}","gists_url":"https://api.github.com/users/schmidt9/gists{/gist_id}","starred_url":"https://api.github.com/users/schmidt9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmidt9/subscriptions","organizations_url":"https://api.github.com/users/schmidt9/orgs","repos_url":"https://api.github.com/users/schmidt9/repos","events_url":"https://api.github.com/users/schmidt9/events{/privacy}","received_events_url":"https://api.github.com/users/schmidt9/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-19T14:08:48Z","updated_at":"2016-09-19T14:08:48Z","closed_at":null,"body":"Hello\r\nFor some reason I'm unable to set text to buttons in subclass (see my pull request https://github.com/hartlco/MHCustomTabBarController/pull/26, where I expose this property)\r\n\r\n```\r\n// does not work eg. in - (void)viewWillAppear:(BOOL)animated\r\n- (void)viewDidLayoutSubviews\r\n{\r\n    UIButton *btn = self.buttons[0];\r\n   [btn setTitle:@\"TESTING\" forState:UIControlStateSelected | UIControlStateNormal | UIControlStateHighlighted]; // does not work\r\n    btn.backgroundColor = [UIColor redColor]; // works\r\n    btn.titleLabel.text = @\"TEST\"; // works, but flickering\r\n}\r\n```"}}
{"actor":{"display_login":"schmidt9"}}