/XZImgBrowser

一款仿微博的图片浏览库(IOS库)

Primary LanguageRubyMIT LicenseMIT

XZImgBrowser

Dependency Status Reference Status
一款ios仿微博的图片浏览器工具
特点:实现渐变的放大效果、渐变的位置移动

Installing

CocoaPods

XZImgBrowser can be installed using CocoaPods.

If you haven't done so already, you might want to initialize the project, to have it produce a Podfile template for you:

$ pod init

Then, edit the Podfile, adding FMDB:

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'MyApp' do
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks
    use_frameworks!

    # Pods for MyApp2

    pod 'XZImgBrowser', '~> 0.0.1'
end

Then install the pods:

$ pod install

Then open the .xcworkspace rather than the .xcodeproj.

For more information on Cocoapods visit https://cocoapods.org.

Pod Version

Usage

调用方法showViewWithArray:(NSArray *)imgArr beginWithIndex:(NSInteger)index即可实现图片浏览
第一个参数传递需要浏览的图片(UIImageView)数组,第二个参数表示默认第几张图片开始浏览。