{"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":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-25T02:34:11Z","updated_at":"2015-11-25T16:19:16Z","closed_at":null,"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/159660551","html_url":"https://github.com/NYTimes/NYTPhotoViewer/issues/91#issuecomment-159660551","issue_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/91","id":159660551,"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-11-25T16:19:16Z","updated_at":"2015-11-25T16:19:16Z","body":"sorry, forgot to add that. `develop` branch as I wanted to use the max zoom delegate method."}}