在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:nytimes/NYTPhotoViewer开源软件地址:https://github.com/nytimes/NYTPhotoViewer开源编程语言:Objective-C 98.2%开源软件介绍:NYTPhotoViewerNYTPhotoViewer is a slideshow and image viewer that includes double-tap to zoom, captions, support for multiple images, interactive flick to dismiss, animated zooming presentation, and more. UsageUsage is simple, with the option for more complicated customization when needed through a delegate relationship. In the most basic implementation, just initialize the view controller with an array of photo objects and present it as normal: NYTPhotosViewController *photosViewController = [[NYTPhotosViewController alloc] initWithPhotos:photos];
[self presentViewController:photosViewController animated:YES completion:nil]; Running the ExampleClone this locally, then in your local workspace of the InstallationSwift Package ManagerNYTPhotoViewer may be installed via SPM, by pointing at this repo's URL. CocoapodsNYTPhotoViewer is available through CocoaPods. To install it, simply add the following line to your pod 'NYTPhotoViewer' CarthageNYTPhotoViewer may be installed via Carthage. To install it, simply add the following line to your
Then, following the instructions for integrating Carthage frameworks into your app, link the If you don't want support for animated GIFs, you may instead link against only the RequirementsThis library requires a deployment target of iOS 9.0 or greater. ChangelogSee ContributingPlease open pull requests against the SwiftNYTPhotoViewer is written in Objective-C but is fully interoperable with Swift. If you experience any interoperability difficulties, please open an issue or pull request and we will work to resolve it. InspirationNYTPhotoViewer draws feature inspiration from Facebook and Tweetbot’s image viewers. If this implementation isn’t to your liking, you may consider JTSImageViewController or IDMPhotoBrowser. ImplementationNYTPhotoViewer has a straightforward implementation using standard UIKit components. The viewer is a It is intended to be used without the need for subclassing, and as such it accepts model objects conforming to a LicenseNYTPhotoViewer is available under the Apache 2.0 license. See ContributorsA list of contributors is available through GitHub. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论