{"action":"opened","issue":{"url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/103","labels_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/103/labels{/name}","comments_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/103/comments","events_url":"https://api.github.com/repos/questbeat/QBImagePicker/issues/103/events","html_url":"https://github.com/questbeat/QBImagePicker/issues/103","id":114495829,"number":103,"title":"QBImagePicker does not popToRoot when dismissed.","user":{"login":"Think7","id":6184590,"avatar_url":"https://avatars.githubusercontent.com/u/6184590?v=3","gravatar_id":"","url":"https://api.github.com/users/Think7","html_url":"https://github.com/Think7","followers_url":"https://api.github.com/users/Think7/followers","following_url":"https://api.github.com/users/Think7/following{/other_user}","gists_url":"https://api.github.com/users/Think7/gists{/gist_id}","starred_url":"https://api.github.com/users/Think7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Think7/subscriptions","organizations_url":"https://api.github.com/users/Think7/orgs","repos_url":"https://api.github.com/users/Think7/repos","events_url":"https://api.github.com/users/Think7/events{/privacy}","received_events_url":"https://api.github.com/users/Think7/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-01T21:59:21Z","updated_at":"2015-11-01T21:59:21Z","closed_at":null,"body":"Hello,\r\n\r\nIf the QBImagePicker is lazy loaded and was previously used to select an image, upon entering it the second time it opens to the same photo store the user last used.\r\n\r\nI would expect that whenever the QBImagePicker is shown it should be on the \"Photos\" screen where the user can select from the various asset stores.\r\n\r\nWrote this (ghetto and horrible) workaround but haven't tested it completely:\r\n\r\n```objective-c\r\n- (void)ensurePickerIsPoppedToRoot\r\n{\r\n    UIViewController *vc = (UIViewController *)[self.imagePicker.childViewControllers firstObject];\r\n    if (vc && [vc isKindOfClass:[UINavigationController class]])\r\n    {\r\n        UINavigationController *nc = (UINavigationController *)vc;\r\n        [nc setViewControllers:[[nc.viewControllers reverseObjectEnumerator] allObjects]];\r\n    }\r\n}\r\n```\r\n"}}