{"action":"closed","issue":{"url":"https://api.github.com/repos/AlexLittlejohn/ALCameraViewController/issues/5","labels_url":"https://api.github.com/repos/AlexLittlejohn/ALCameraViewController/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/AlexLittlejohn/ALCameraViewController/issues/5/comments","events_url":"https://api.github.com/repos/AlexLittlejohn/ALCameraViewController/issues/5/events","html_url":"https://github.com/AlexLittlejohn/ALCameraViewController/issues/5","id":109731232,"number":5,"title":"How can I call camera on viewDidLoad?","user":{"login":"orkhanalizade","id":7026025,"avatar_url":"https://avatars.githubusercontent.com/u/7026025?v=3","gravatar_id":"","url":"https://api.github.com/users/orkhanalizade","html_url":"https://github.com/orkhanalizade","followers_url":"https://api.github.com/users/orkhanalizade/followers","following_url":"https://api.github.com/users/orkhanalizade/following{/other_user}","gists_url":"https://api.github.com/users/orkhanalizade/gists{/gist_id}","starred_url":"https://api.github.com/users/orkhanalizade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orkhanalizade/subscriptions","organizations_url":"https://api.github.com/users/orkhanalizade/orgs","repos_url":"https://api.github.com/users/orkhanalizade/repos","events_url":"https://api.github.com/users/orkhanalizade/events{/privacy}","received_events_url":"https://api.github.com/users/orkhanalizade/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-05T04:56:52Z","updated_at":"2015-10-06T12:08:51Z","closed_at":"2015-10-06T12:08:51Z","body":"How can I call camera on viewDidLoad without clicking on button? I tried to just call in viewDidLoad\r\n\r\n    let cameraViewController = ALCameraViewController(croppingEnabled: croppingEnabled) { (image) -> Void in\r\n            self.imageView.image = image\r\n     }\r\n\r\nbut it crashes. How can I call camera without crash?"}}