{"action":"created","issue":{"url":"https://api.github.com/repos/uchicago-mobi/2015-Winter-Forum/issues/149","labels_url":"https://api.github.com/repos/uchicago-mobi/2015-Winter-Forum/issues/149/labels{/name}","comments_url":"https://api.github.com/repos/uchicago-mobi/2015-Winter-Forum/issues/149/comments","events_url":"https://api.github.com/repos/uchicago-mobi/2015-Winter-Forum/issues/149/events","html_url":"https://github.com/uchicago-mobi/2015-Winter-Forum/issues/149","id":58153317,"number":149,"title":"Tips for Splash Screen","user":{"login":"tabinks","id":93689,"avatar_url":"https://avatars.githubusercontent.com/u/93689?v=3","gravatar_id":"","url":"https://api.github.com/users/tabinks","html_url":"https://github.com/tabinks","followers_url":"https://api.github.com/users/tabinks/followers","following_url":"https://api.github.com/users/tabinks/following{/other_user}","gists_url":"https://api.github.com/users/tabinks/gists{/gist_id}","starred_url":"https://api.github.com/users/tabinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabinks/subscriptions","organizations_url":"https://api.github.com/users/tabinks/orgs","repos_url":"https://api.github.com/users/tabinks/repos","events_url":"https://api.github.com/users/tabinks/events{/privacy}","received_events_url":"https://api.github.com/users/tabinks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-19T00:50:04Z","updated_at":"2015-02-19T14:28:14Z","closed_at":null,"body":"In iOS8, the detail view controller is the default view presented on the screen regardless if its \"compacted\" on iPhone or on iPad.    Even this baffled me a bit and was not obvious from the documentation.  This means that it will always be visible on screen when the app launches.  \r\n\r\nOne approach to take with the splash screen is as follows:\r\n - Load the splash screen view controller in the `DetailViewController`\r\n - Present this view controller after the `DetailViewController` is loaded, but **before** it's view appears on screen\r\n - Do not animate this presentation\r\n\r\nYou can accomplish this with something like this:\r\n```objc\r\n// in DetailViewController.h\r\n- (void)viewWillAppear:(BOOL)animated\r\n{\r\n    UIViewController *vc = [[UIViewController alloc] init];\r\n    vc.view.backgroundColor = [UIColor greenColor];\r\n    [self presentViewController:vc animated:NO completion:^{\r\n        NSLog(@\"Splash screen is showing\");\r\n    }];\r\n}\r\n```\r\n\r\nThis will result in a new green view controller being the first one the user would 'see' onscreen, despite it being loaded later in the launch cycle.  There are many other ways to accomplish the splash screen effect, this is just one of them.\r\n\r\nYou will have to figure out how to dismiss it once the data is done loading.  Hint: Create a custom protocol to allow your `MasterViewController` to send messages (assuming you are downloading here) to the `DetailViewController`."},"comment":{"url":"https://api.github.com/repos/uchicago-mobi/2015-Winter-Forum/issues/comments/75060100","html_url":"https://github.com/uchicago-mobi/2015-Winter-Forum/issues/149#issuecomment-75060100","issue_url":"https://api.github.com/repos/uchicago-mobi/2015-Winter-Forum/issues/149","id":75060100,"user":{"login":"tabinks","id":93689,"avatar_url":"https://avatars.githubusercontent.com/u/93689?v=3","gravatar_id":"","url":"https://api.github.com/users/tabinks","html_url":"https://github.com/tabinks","followers_url":"https://api.github.com/users/tabinks/followers","following_url":"https://api.github.com/users/tabinks/following{/other_user}","gists_url":"https://api.github.com/users/tabinks/gists{/gist_id}","starred_url":"https://api.github.com/users/tabinks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tabinks/subscriptions","organizations_url":"https://api.github.com/users/tabinks/orgs","repos_url":"https://api.github.com/users/tabinks/repos","events_url":"https://api.github.com/users/tabinks/events{/privacy}","received_events_url":"https://api.github.com/users/tabinks/received_events","type":"User","site_admin":false},"created_at":"2015-02-19T14:28:14Z","updated_at":"2015-02-19T14:28:14Z","body":"Have you splash screen listen for a broadcast from your masterviewcontroller"}}