{"action":"created","issue":{"url":"https://api.github.com/repos/uacaps/PageMenu/issues/77","labels_url":"https://api.github.com/repos/uacaps/PageMenu/issues/77/labels{/name}","comments_url":"https://api.github.com/repos/uacaps/PageMenu/issues/77/comments","events_url":"https://api.github.com/repos/uacaps/PageMenu/issues/77/events","html_url":"https://github.com/uacaps/PageMenu/issues/77","id":95980300,"number":77,"title":"Presenting view controllers on detached view controllers is discouraged","user":{"login":"griffonixjp","id":3293712,"avatar_url":"https://avatars.githubusercontent.com/u/3293712?v=3","gravatar_id":"","url":"https://api.github.com/users/griffonixjp","html_url":"https://github.com/griffonixjp","followers_url":"https://api.github.com/users/griffonixjp/followers","following_url":"https://api.github.com/users/griffonixjp/following{/other_user}","gists_url":"https://api.github.com/users/griffonixjp/gists{/gist_id}","starred_url":"https://api.github.com/users/griffonixjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griffonixjp/subscriptions","organizations_url":"https://api.github.com/users/griffonixjp/orgs","repos_url":"https://api.github.com/users/griffonixjp/repos","events_url":"https://api.github.com/users/griffonixjp/events{/privacy}","received_events_url":"https://api.github.com/users/griffonixjp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-20T03:52:17Z","updated_at":"2015-07-21T22:58:13Z","closed_at":null,"body":"Thanks for the great library.\r\n\r\nI have pageMenu and 3 child viewControllers.\r\nOne of them has collectionView and when a cell is tapped, presentViewController method is called in didSelectItemAtIndexPath.\r\nThen, the following warning displays in debug window.\r\n\r\n> Presenting view controllers on detached view controllers is discouraged\r\n\r\nThe modal viewcontroller is displayed properly but when dismissViewControllerAnimated is called, source view layout collapses and the view goes under navigationbar.\r\nHow can I prevent from the warning?\r\nI tried the following code but when dismissViewControllerAnimated is called, EXC_BAD_ACCESS error occurs.\r\n\r\n    self.view.window!.rootViewController?.presentViewController(vc, animated: true, completion: nil)\r\n\r\nSwift 1.2\r\nXCode 5.3.1\r\n"},"comment":{"url":"https://api.github.com/repos/uacaps/PageMenu/issues/comments/123503175","html_url":"https://github.com/uacaps/PageMenu/issues/77#issuecomment-123503175","issue_url":"https://api.github.com/repos/uacaps/PageMenu/issues/77","id":123503175,"user":{"login":"griffonixjp","id":3293712,"avatar_url":"https://avatars.githubusercontent.com/u/3293712?v=3","gravatar_id":"","url":"https://api.github.com/users/griffonixjp","html_url":"https://github.com/griffonixjp","followers_url":"https://api.github.com/users/griffonixjp/followers","following_url":"https://api.github.com/users/griffonixjp/following{/other_user}","gists_url":"https://api.github.com/users/griffonixjp/gists{/gist_id}","starred_url":"https://api.github.com/users/griffonixjp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/griffonixjp/subscriptions","organizations_url":"https://api.github.com/users/griffonixjp/orgs","repos_url":"https://api.github.com/users/griffonixjp/repos","events_url":"https://api.github.com/users/griffonixjp/events{/privacy}","received_events_url":"https://api.github.com/users/griffonixjp/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T22:58:13Z","updated_at":"2015-07-21T22:58:13Z","body":"Cool! It works like a charm!\r\nThank you, paulsfds\r\n"}}