美文网首页
MultiimagesViewController

MultiimagesViewController

作者: 轻云绿原 | 来源:发表于2019-06-20 11:54 被阅读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)
    }
}

相关文章

网友评论

      本文标题:MultiimagesViewController

      本文链接:https://www.haomeiwen.com/subject/biedqctx.html