{"action":"created","issue":{"url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/91","labels_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/91/comments","events_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/91/events","html_url":"https://github.com/NYTimes/NYTPhotoViewer/issues/91","id":118747342,"number":91,"title":"initWithPhotos:initialPhoto does not add zoom and scale gestures","user":{"login":"lpenaflor","id":12666638,"avatar_url":"https://avatars.githubusercontent.com/u/12666638?v=3","gravatar_id":"","url":"https://api.github.com/users/lpenaflor","html_url":"https://github.com/lpenaflor","followers_url":"https://api.github.com/users/lpenaflor/followers","following_url":"https://api.github.com/users/lpenaflor/following{/other_user}","gists_url":"https://api.github.com/users/lpenaflor/gists{/gist_id}","starred_url":"https://api.github.com/users/lpenaflor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpenaflor/subscriptions","organizations_url":"https://api.github.com/users/lpenaflor/orgs","repos_url":"https://api.github.com/users/lpenaflor/repos","events_url":"https://api.github.com/users/lpenaflor/events{/privacy}","received_events_url":"https://api.github.com/users/lpenaflor/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-11-25T02:34:11Z","updated_at":"2015-12-02T15:31:11Z","closed_at":"2015-12-02T04:46:32Z","body":"If you use `initWithPhotos:initialPhoto` the initial photo does not have pinch zoom or double tap zoom capabilities. I believe this is because no delegate is set when `(NYTPhotoViewController *)newPhotoViewControllerForPhoto:(id <NYTPhoto>)photo` is invoked.\r\n\r\nWork around is to just use `initWithPhotos` and then set the delegate before `displayPhoto:`\r\n\r\n````\r\nNYTPhotosViewController *photosViewController = [[NYTPhotosViewController alloc] initWithPhotos:self.slideShowPhotosArray];\r\nphotosViewController.delegate = self;\r\n[photosViewController displayPhoto:[self.slideShowPhotosArray objectAtIndex:index] animated:NO];\r\n````"},"comment":{"url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/comments/161333343","html_url":"https://github.com/NYTimes/NYTPhotoViewer/issues/91#issuecomment-161333343","issue_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/91","id":161333343,"user":{"login":"lpenaflor","id":12666638,"avatar_url":"https://avatars.githubusercontent.com/u/12666638?v=3","gravatar_id":"","url":"https://api.github.com/users/lpenaflor","html_url":"https://github.com/lpenaflor","followers_url":"https://api.github.com/users/lpenaflor/followers","following_url":"https://api.github.com/users/lpenaflor/following{/other_user}","gists_url":"https://api.github.com/users/lpenaflor/gists{/gist_id}","starred_url":"https://api.github.com/users/lpenaflor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lpenaflor/subscriptions","organizations_url":"https://api.github.com/users/lpenaflor/orgs","repos_url":"https://api.github.com/users/lpenaflor/repos","events_url":"https://api.github.com/users/lpenaflor/events{/privacy}","received_events_url":"https://api.github.com/users/lpenaflor/received_events","type":"User","site_admin":false},"created_at":"2015-12-02T15:31:11Z","updated_at":"2015-12-02T15:31:11Z","body":"Yea, I'm going to look into the issue more, even try to get a sample\nproject together.\n\nOn Wed, Dec 2, 2015 at 8:17 AM, Chris Dzombak <notifications@github.com>\nwrote:\n\n> Hm, I am not sure offhand why that would've caused the issue you\n> described, but I'm glad it's working now.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/NYTimes/NYTPhotoViewer/issues/91#issuecomment-161309827>\n> .\n>\n"}}