{"action":"created","issue":{"url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/176","repository_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer","labels_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/176/labels{/name}","comments_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/176/comments","events_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/176/events","html_url":"https://github.com/NYTimes/NYTPhotoViewer/issues/176","id":142738104,"number":176,"title":"Custom Long Press not working","user":{"login":"ZahidKsoft","id":17647821,"avatar_url":"https://avatars.githubusercontent.com/u/17647821?v=3","gravatar_id":"","url":"https://api.github.com/users/ZahidKsoft","html_url":"https://github.com/ZahidKsoft","followers_url":"https://api.github.com/users/ZahidKsoft/followers","following_url":"https://api.github.com/users/ZahidKsoft/following{/other_user}","gists_url":"https://api.github.com/users/ZahidKsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/ZahidKsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZahidKsoft/subscriptions","organizations_url":"https://api.github.com/users/ZahidKsoft/orgs","repos_url":"https://api.github.com/users/ZahidKsoft/repos","events_url":"https://api.github.com/users/ZahidKsoft/events{/privacy}","received_events_url":"https://api.github.com/users/ZahidKsoft/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-22T18:27:07Z","updated_at":"2016-04-12T16:45:06Z","closed_at":null,"body":"The handleLongPressForPhoto override is not rendering the custom menu items. Here is the code i implemented. I even tried using longPressGestureRecognizer.view! in place of photosViewController in the code below but still no luck.\r\n\r\n\tfunc photosViewController(photosViewController: NYTPhotosViewController, handleLongPressForPhoto photo: NYTPhoto, withGestureRecognizer longPressGestureRecognizer: UILongPressGestureRecognizer) -> Bool {\r\n\t\t\r\n\t\tphotosViewController.becomeFirstResponder()\r\n\t\t\r\n\t\tvar targetRect =  CGRectZero \r\n\t\ttargetRect.origin = longPressGestureRecognizer.locationInView(photosViewController.view!)\r\n\t\tlet menuController = UIMenuController.sharedMenuController()\r\n\t\tlet titleItem = UIMenuItem(title: \"Title\", action: nil)\r\n\t\tlet favItem = UIMenuItem(title: \"Favourite\", action: nil)\r\n\t\t\r\n\t\tmenuController.setTargetRect(targetRect, inView: photosViewController.view!)\r\n\t\t\r\n\t\tmenuController.menuItems = []\r\n\t\tmenuController.menuItems = [titleItem, favItem]\r\n\t\t\r\n\t\tmenuController.setMenuVisible(true, animated:true)\r\n\t\tmenuController.update()\r\n\t\t\r\n\t\treturn true\r\n\t}"},"comment":{"url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/comments/209001761","html_url":"https://github.com/NYTimes/NYTPhotoViewer/issues/176#issuecomment-209001761","issue_url":"https://api.github.com/repos/NYTimes/NYTPhotoViewer/issues/176","id":209001761,"user":{"login":"ZahidKsoft","id":17647821,"avatar_url":"https://avatars.githubusercontent.com/u/17647821?v=3","gravatar_id":"","url":"https://api.github.com/users/ZahidKsoft","html_url":"https://github.com/ZahidKsoft","followers_url":"https://api.github.com/users/ZahidKsoft/followers","following_url":"https://api.github.com/users/ZahidKsoft/following{/other_user}","gists_url":"https://api.github.com/users/ZahidKsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/ZahidKsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ZahidKsoft/subscriptions","organizations_url":"https://api.github.com/users/ZahidKsoft/orgs","repos_url":"https://api.github.com/users/ZahidKsoft/repos","events_url":"https://api.github.com/users/ZahidKsoft/events{/privacy}","received_events_url":"https://api.github.com/users/ZahidKsoft/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T16:45:06Z","updated_at":"2016-04-12T16:45:06Z","body":"???????"}}