Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

README Code Snippet Not Working #269

Open
danlevy1 opened this issue Jul 12, 2018 · 0 comments
Open

README Code Snippet Not Working #269

danlevy1 opened this issue Jul 12, 2018 · 0 comments

Comments

@danlevy1
Copy link

The following piece of code appears to no longer work:

NYTPhotosViewController *photosViewController = [[NYTPhotosViewController alloc] initWithPhotos:photos];
[self presentViewController:photosViewController animated:YES completion:nil];

I am just now upgrading from an older version of NYTPhotoViewer and I use the equivalent piece of Swift code:

var photosViewController = NYTPhotosViewController(photos: photos)
present(photosViewController, animated: true)

It appears that the argument photos: does not exist. Can someone please advise me on how to upgrade my code to the current version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant