{"action":"created","comment":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments/72467958","id":72467958,"diff_hunk":"@@ -363,6 +363,23 @@ -(void)setBarColor:(id)colorString\n     }\n }\n \n+-(void)setStatusBarBackgroundColor:(id)colorString\n+{\n+    ENSURE_UI_THREAD(setStatusBarBackgroundColor, colorString);\n+    NSString *color = [TiUtils stringValue:colorString];\n+    [self replaceValue:color forKey:@\"statusBarBackgroundColor\" notification:NO];\n+    if (controller != nil && [controller navigationController] != nil)\n+    {\n+        if (statusbarBg == nil) {\n+            statusbarBg = [[UIView alloc] initWithFrame:[UIApplication sharedApplication].statusBarFrame];\n+            [[controller navigationController].view addSubview:statusbarBg];\n+        }\n+        TiColor* newColor = [TiUtils colorValue:color];\n+        statusbarBg.backgroundColor = [newColor _color];\n+    }\n+}","path":"iphone/Classes/TiUIWindowProxy.m","position":18,"original_position":18,"commit_id":"6cf8bb69aa45a5fb6a539ee7dbc63a8b082b55fb","original_commit_id":"6cf8bb69aa45a5fb6a539ee7dbc63a8b082b55fb","user":{"login":"hansemannn","id":10667698,"avatar_url":"https://avatars.githubusercontent.com/u/10667698?v=3","gravatar_id":"","url":"https://api.github.com/users/hansemannn","html_url":"https://github.com/hansemannn","followers_url":"https://api.github.com/users/hansemannn/followers","following_url":"https://api.github.com/users/hansemannn/following{/other_user}","gists_url":"https://api.github.com/users/hansemannn/gists{/gist_id}","starred_url":"https://api.github.com/users/hansemannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansemannn/subscriptions","organizations_url":"https://api.github.com/users/hansemannn/orgs","repos_url":"https://api.github.com/users/hansemannn/repos","events_url":"https://api.github.com/users/hansemannn/events{/privacy}","received_events_url":"https://api.github.com/users/hansemannn/received_events","type":"User","site_admin":false},"body":"Not sure if that's the best way to go. I like the style proposed here: http://stackoverflow.com/a/34658477/5537752\r\n\r\nAlso, `statusbarBg` should be released from memory every time it is set again, as well as in the `dealloc` method to clean it from memory after the gets GC'd.\r\n\r\nPlease try the above-mentioned way to do it.","created_at":"2016-07-27T15:57:11Z","updated_at":"2016-07-27T15:57:11Z","html_url":"https://github.com/appcelerator/titanium_mobile/pull/8162#discussion_r72467958","pull_request_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162","_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments/72467958"},"html":{"href":"https://github.com/appcelerator/titanium_mobile/pull/8162#discussion_r72467958"},"pull_request":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162"}}},"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162","id":79048736,"html_url":"https://github.com/appcelerator/titanium_mobile/pull/8162","diff_url":"https://github.com/appcelerator/titanium_mobile/pull/8162.diff","patch_url":"https://github.com/appcelerator/titanium_mobile/pull/8162.patch","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8162","number":8162,"state":"open","locked":false,"title":"[TIMOB-23691] iOS: Expose statusBarBackgroundColor","user":{"login":"kopiro","id":839700,"avatar_url":"https://avatars.githubusercontent.com/u/839700?v=3","gravatar_id":"","url":"https://api.github.com/users/kopiro","html_url":"https://github.com/kopiro","followers_url":"https://api.github.com/users/kopiro/followers","following_url":"https://api.github.com/users/kopiro/following{/other_user}","gists_url":"https://api.github.com/users/kopiro/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiro/subscriptions","organizations_url":"https://api.github.com/users/kopiro/orgs","repos_url":"https://api.github.com/users/kopiro/repos","events_url":"https://api.github.com/users/kopiro/events{/privacy}","received_events_url":"https://api.github.com/users/kopiro/received_events","type":"User","site_admin":false},"body":"**JIRA:** https://jira.appcelerator.org/browse/TIMOB-23691\r\n","created_at":"2016-07-27T15:47:44Z","updated_at":"2016-07-27T15:57:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"381bdf75ed1c9f2516ddeacc22e5d9b9c43b98e7","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones/3","html_url":"https://github.com/appcelerator/titanium_mobile/milestones/6.1.0","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones/3/labels","id":1907490,"number":3,"title":"6.1.0","description":null,"creator":{"login":"hansemannn","id":10667698,"avatar_url":"https://avatars.githubusercontent.com/u/10667698?v=3","gravatar_id":"","url":"https://api.github.com/users/hansemannn","html_url":"https://github.com/hansemannn","followers_url":"https://api.github.com/users/hansemannn/followers","following_url":"https://api.github.com/users/hansemannn/following{/other_user}","gists_url":"https://api.github.com/users/hansemannn/gists{/gist_id}","starred_url":"https://api.github.com/users/hansemannn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hansemannn/subscriptions","organizations_url":"https://api.github.com/users/hansemannn/orgs","repos_url":"https://api.github.com/users/hansemannn/repos","events_url":"https://api.github.com/users/hansemannn/events{/privacy}","received_events_url":"https://api.github.com/users/hansemannn/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-07-27T15:53:48Z","updated_at":"2016-07-27T15:53:48Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162/commits","review_comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162/comments","review_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8162/comments","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/6cf8bb69aa45a5fb6a539ee7dbc63a8b082b55fb","head":{"label":"kopiro:PR-AC-4253","ref":"PR-AC-4253","sha":"6cf8bb69aa45a5fb6a539ee7dbc63a8b082b55fb","user":{"login":"kopiro","id":839700,"avatar_url":"https://avatars.githubusercontent.com/u/839700?v=3","gravatar_id":"","url":"https://api.github.com/users/kopiro","html_url":"https://github.com/kopiro","followers_url":"https://api.github.com/users/kopiro/followers","following_url":"https://api.github.com/users/kopiro/following{/other_user}","gists_url":"https://api.github.com/users/kopiro/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiro/subscriptions","organizations_url":"https://api.github.com/users/kopiro/orgs","repos_url":"https://api.github.com/users/kopiro/repos","events_url":"https://api.github.com/users/kopiro/events{/privacy}","received_events_url":"https://api.github.com/users/kopiro/received_events","type":"User","site_admin":false},"repo":{"id":38889453,"name":"titanium_mobile","full_name":"kopiro/titanium_mobile","owner":{"login":"kopiro","id":839700,"avatar_url":"https://avatars.githubusercontent.com/u/839700?v=3","gravatar_id":"","url":"https://api.github.com/users/kopiro","html_url":"https://github.com/kopiro","followers_url":"https://api.github.com/users/kopiro/followers","following_url":"https://api.github.com/users/kopiro/following{/other_user}","gists_url":"https://api.github.com/users/kopiro/gists{/gist_id}","starred_url":"https://api.github.com/users/kopiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kopiro/subscriptions","organizations_url":"https://api.github.com/users/kopiro/orgs","repos_url":"https://api.github.com/users/kopiro/repos","events_url":"https://api.github.com/users/kopiro/events{/privacy}","received_events_url":"https://api.github.com/users/kopiro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kopiro/titanium_mobile","description":"Appcelerator Titanium Mobile","fork":true,"url":"https://api.github.com/repos/kopiro/titanium_mobile","forks_url":"https://api.github.com/repos/kopiro/titanium_mobile/forks","keys_url":"https://api.github.com/repos/kopiro/titanium_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kopiro/titanium_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kopiro/titanium_mobile/teams","hooks_url":"https://api.github.com/repos/kopiro/titanium_mobile/hooks","issue_events_url":"https://api.github.com/repos/kopiro/titanium_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/kopiro/titanium_mobile/events","assignees_url":"https://api.github.com/repos/kopiro/titanium_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/kopiro/titanium_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/kopiro/titanium_mobile/tags","blobs_url":"https://api.github.com/repos/kopiro/titanium_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kopiro/titanium_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kopiro/titanium_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/kopiro/titanium_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kopiro/titanium_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/kopiro/titanium_mobile/languages","stargazers_url":"https://api.github.com/repos/kopiro/titanium_mobile/stargazers","contributors_url":"https://api.github.com/repos/kopiro/titanium_mobile/contributors","subscribers_url":"https://api.github.com/repos/kopiro/titanium_mobile/subscribers","subscription_url":"https://api.github.com/repos/kopiro/titanium_mobile/subscription","commits_url":"https://api.github.com/repos/kopiro/titanium_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/kopiro/titanium_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/kopiro/titanium_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/kopiro/titanium_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/kopiro/titanium_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/kopiro/titanium_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kopiro/titanium_mobile/merges","archive_url":"https://api.github.com/repos/kopiro/titanium_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kopiro/titanium_mobile/downloads","issues_url":"https://api.github.com/repos/kopiro/titanium_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/kopiro/titanium_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/kopiro/titanium_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/kopiro/titanium_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kopiro/titanium_mobile/labels{/name}","releases_url":"https://api.github.com/repos/kopiro/titanium_mobile/releases{/id}","deployments_url":"https://api.github.com/repos/kopiro/titanium_mobile/deployments","created_at":"2015-07-10T16:05:37Z","updated_at":"2015-07-10T16:05:53Z","pushed_at":"2016-07-27T15:47:14Z","git_url":"git://github.com/kopiro/titanium_mobile.git","ssh_url":"git@github.com:kopiro/titanium_mobile.git","clone_url":"https://github.com/kopiro/titanium_mobile.git","svn_url":"https://github.com/kopiro/titanium_mobile","homepage":"http://www.appcelerator.com","size":1016064,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"appcelerator:master","ref":"master","sha":"9a5a1fa4248e172a76f817fb92bc0702e1627063","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":228094,"name":"titanium_mobile","full_name":"appcelerator/titanium_mobile","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/titanium_mobile","description":"Appcelerator Titanium Mobile","fork":false,"url":"https://api.github.com/repos/appcelerator/titanium_mobile","forks_url":"https://api.github.com/repos/appcelerator/titanium_mobile/forks","keys_url":"https://api.github.com/repos/appcelerator/titanium_mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/titanium_mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/titanium_mobile/teams","hooks_url":"https://api.github.com/repos/appcelerator/titanium_mobile/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile/events","assignees_url":"https://api.github.com/repos/appcelerator/titanium_mobile/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/titanium_mobile/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile/tags","blobs_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/titanium_mobile/languages","stargazers_url":"https://api.github.com/repos/appcelerator/titanium_mobile/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/titanium_mobile/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/titanium_mobile/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/titanium_mobile/subscription","commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/titanium_mobile/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/titanium_mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/titanium_mobile/merges","archive_url":"https://api.github.com/repos/appcelerator/titanium_mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/titanium_mobile/downloads","issues_url":"https://api.github.com/repos/appcelerator/titanium_mobile/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/titanium_mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/titanium_mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/titanium_mobile/releases{/id}","deployments_url":"https://api.github.com/repos/appcelerator/titanium_mobile/deployments","created_at":"2009-06-15T22:54:37Z","updated_at":"2016-07-27T14:37:34Z","pushed_at":"2016-07-27T15:47:44Z","git_url":"git://github.com/appcelerator/titanium_mobile.git","ssh_url":"git@github.com:appcelerator/titanium_mobile.git","clone_url":"https://github.com/appcelerator/titanium_mobile.git","svn_url":"https://github.com/appcelerator/titanium_mobile","homepage":"http://www.appcelerator.com","size":1147598,"stargazers_count":2107,"watchers_count":2107,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1121,"mirror_url":null,"open_issues_count":25,"forks":1121,"open_issues":25,"watchers":2107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162"},"html":{"href":"https://github.com/appcelerator/titanium_mobile/pull/8162"},"issue":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8162"},"comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/issues/8162/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/pulls/8162/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile/statuses/6cf8bb69aa45a5fb6a539ee7dbc63a8b082b55fb"}}}}
{"actor":{"display_login":"hansemannn"}}