// // Demo_SDPhoto.swift // CommonFrame // // Created by Virgil on 2016/12/19. // Copyright © 2016年 Virgil. All rights reserved. // import UIKit class Demo_SDPhoto: NSObject { // @IBAction func centerBtnAction(sender: UIButton) { // let sd = SDPhotoBrowser() // sd.tag = sender.tag; // viewTopImage = sender.superview! // arrImagePaths.removeAll() // let imgs = (arrData[viewTopImage.tag] as! NSDictionary)["imgs"] as? NSArray // for img in imgs! // { // arrImagePaths.append((img as! NSDictionary)["imgPath"] as! String) // } // // sd.sourceImagesContainerView = viewTopImage; // sd.imageCount = arrImagePaths.count // sd.currentImageIndex = Int32(sender.tag) // sd.delegate = self; // sd.show() // } // // var viewTopImage = UIView() // var arrImagePaths = [String]() // MARK: 图片 // func photoBrowser(_ browser: SDPhotoBrowser!, placeholderImageFor index: Int) -> UIImage! // { // // return (viewTopImage.subviews[index] as! UIButton).currentImage! // } // func photoBrowser(_ browser: SDPhotoBrowser!, highQualityImageURLFor index: Int) -> URL! { // print(RequestURL.hostAdminMain + arrImagePaths[index]); // return URL(string: arrImagePaths[index]) // // } }