{"action":"closed","issue":{"url":"https://api.github.com/repos/chiunam/CTAssetsPickerController/issues/177","labels_url":"https://api.github.com/repos/chiunam/CTAssetsPickerController/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/chiunam/CTAssetsPickerController/issues/177/comments","events_url":"https://api.github.com/repos/chiunam/CTAssetsPickerController/issues/177/events","html_url":"https://github.com/chiunam/CTAssetsPickerController/issues/177","id":117772045,"number":177,"title":"show blank page after presented in form sheet style on Swift iPad App","user":{"login":"wjiuxing","id":4176744,"avatar_url":"https://avatars.githubusercontent.com/u/4176744?v=3","gravatar_id":"","url":"https://api.github.com/users/wjiuxing","html_url":"https://github.com/wjiuxing","followers_url":"https://api.github.com/users/wjiuxing/followers","following_url":"https://api.github.com/users/wjiuxing/following{/other_user}","gists_url":"https://api.github.com/users/wjiuxing/gists{/gist_id}","starred_url":"https://api.github.com/users/wjiuxing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjiuxing/subscriptions","organizations_url":"https://api.github.com/users/wjiuxing/orgs","repos_url":"https://api.github.com/users/wjiuxing/repos","events_url":"https://api.github.com/users/wjiuxing/events{/privacy}","received_events_url":"https://api.github.com/users/wjiuxing/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-19T09:19:32Z","updated_at":"2015-12-11T03:24:49Z","closed_at":"2015-12-11T03:24:49Z","body":"I have a Swift project. I want to present this picker in form sheet on iPad. But it shows me a blank view, see screenshot at the end pls.\r\n\r\nSteps to reproduce:\r\n0- I'm using Xcode 7.1.1\r\n1- new a Master-Detail Application in Swift\r\n2- add CTAssetsPickerController to Podfile and run pod install\r\n3- change the MasterViewController\r\n\r\n\r\n    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {\r\n            PHPhotoLibrary.requestAuthorization({ (status) -> Void in\r\n                dispatch_async(dispatch_get_main_queue(), { () -> Void in\r\n                    // init picker\r\n                    self.assetsPicker = CTAssetsPickerController()\r\n                \r\n                    // set delegate\r\n                    self.assetsPicker.delegate = self\r\n                \r\n                    // set default album (Camera Roll)\r\n                    self.assetsPicker.defaultAssetCollection = .SmartAlbumUserLibrary\r\n                \r\n                    if UIDevice.currentDevice().userInterfaceIdiom == .Pad {\r\n                        self.assetsPicker.modalPresentationStyle = .FormSheet\r\n                    }\r\n                \r\n                    // present picker\r\n                    self.presentViewController(self.assetsPicker, animated: true, completion: nil)\r\n                })\r\n            })\r\n       }\r\n\r\n4- run the app and add an entry by clicking on the \"+\" on the right bar button of MasterViewController\r\n5- click on the new cell inserted above. At this time above code will be called.\r\n6- show a blank page as the image following.\r\n\r\n![ctassetspickercontroller shown as a blank page in form sheet style](https://cloud.githubusercontent.com/assets/4176744/11266150/5c867130-8edd-11e5-833a-505286166c52.png)\r\n\r\nThank you very much. :)"}}