{"action":"created","issue":{"url":"https://api.github.com/repos/bblia/tipsy/issues/2","repository_url":"https://api.github.com/repos/bblia/tipsy","labels_url":"https://api.github.com/repos/bblia/tipsy/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bblia/tipsy/issues/2/comments","events_url":"https://api.github.com/repos/bblia/tipsy/issues/2/events","html_url":"https://github.com/bblia/tipsy/issues/2","id":247904199,"number":2,"title":"UserDefaults Improvement","user":{"login":"chrisdhaan","id":5225621,"avatar_url":"https://avatars3.githubusercontent.com/u/5225621?v=4","gravatar_id":"","url":"https://api.github.com/users/chrisdhaan","html_url":"https://github.com/chrisdhaan","followers_url":"https://api.github.com/users/chrisdhaan/followers","following_url":"https://api.github.com/users/chrisdhaan/following{/other_user}","gists_url":"https://api.github.com/users/chrisdhaan/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisdhaan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisdhaan/subscriptions","organizations_url":"https://api.github.com/users/chrisdhaan/orgs","repos_url":"https://api.github.com/users/chrisdhaan/repos","events_url":"https://api.github.com/users/chrisdhaan/events{/privacy}","received_events_url":"https://api.github.com/users/chrisdhaan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-04T05:10:17Z","updated_at":"2017-08-04T05:17:39Z","closed_at":null,"body":"Currently you save `timeAppClosed`, `percentageLastClosed`, and `billLastClosed` in `viewWillDisappear`. This is a UIViewController lifecycle method and not an app lifecycle method. So it doesn't guarantee those values get saved on app close. It just guarantees they are saved when the SettingsViewController appears. I would try and save those variables to UserDefaults differently. Try saving `timeAppClosed` in AppDelegate (I'll let you figure out which method). Try saving `percentageLastClosed` in the `calculateTip` method. You could also try saving `billLastClosed` in the `calculateTip` method but I challenge you to try saving it using `UITextFieldDelegate`. Let me know if you need help!"},"comment":{"url":"https://api.github.com/repos/bblia/tipsy/issues/comments/320158650","html_url":"https://github.com/bblia/tipsy/issues/2#issuecomment-320158650","issue_url":"https://api.github.com/repos/bblia/tipsy/issues/2","id":320158650,"user":{"login":"bblia","id":4870878,"avatar_url":"https://avatars2.githubusercontent.com/u/4870878?v=4","gravatar_id":"","url":"https://api.github.com/users/bblia","html_url":"https://github.com/bblia","followers_url":"https://api.github.com/users/bblia/followers","following_url":"https://api.github.com/users/bblia/following{/other_user}","gists_url":"https://api.github.com/users/bblia/gists{/gist_id}","starred_url":"https://api.github.com/users/bblia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblia/subscriptions","organizations_url":"https://api.github.com/users/bblia/orgs","repos_url":"https://api.github.com/users/bblia/repos","events_url":"https://api.github.com/users/bblia/events{/privacy}","received_events_url":"https://api.github.com/users/bblia/received_events","type":"User","site_admin":false},"created_at":"2017-08-04T05:17:39Z","updated_at":"2017-08-04T05:17:39Z","body":"hehe jk thank you for taking the time to see where i can learn more :)"}}
{"actor":{"display_login":"bblia"}}