MultiimagesViewController

2019-06-20  本文已影响0人  轻云绿原

效果

multiimageViewController

引入

pod 'PPFMultiImageViewController', '~> 0.0.3'

怎么使用

let list = [url0,url1,url2]
let m:PPFMultiImageModel = PPFMultiImageModel(urls: list, images: [])!
let vc = PPFMultiImageViewController(model: m)
vc.delegate = self
self.present(vc, animated: true, completion: nil)
// MARK: - PPFMultiImageViewController_delegate
extension ViewController:PPFMultiImageViewController_delegate {
    func ppfMultiImageViewController(_ vc: PPFMultiImageViewController, backAndSelected index: Int) {
        vc.dismiss(animated: true, completion: nil)
    }
}
上一篇 下一篇

猜你喜欢

热点阅读