 import UIKit
 
 class ViewController: UIViewController,AUAlertMessageDelegate,UIScrollViewDelegate {
-
-//    let imageview = UIImageView(image: UIImage.init(named: "image.jpg"))
-//    let scrollView = UIScrollView.init()
     
     override func viewDidLoad() {
         super.viewDidLoad()

        auStringExamples()
        auDateExamples()
        auImageViewExamples()
        //enableImageZoom()
    }
    
//    override func viewDidLayoutSubviews() {
//        super.viewDidLayoutSubviews()
//        
//        setZoomScale()
//    }
    
    /*public func enableImageZoom() {
        
        scrollView.delegate = self
        scrollView.frame = self.view.bounds
        scrollView.backgroundColor = UIColor.black
        scrollView.contentSize = imageview.bounds.size
        scrollView.autoresizingMask = [UIViewAutoresizing.flexibleWidth, UIViewAutoresizing.flexibleHeight]
        scrollView.addSubview(imageview)
        self.view.addSubview(scrollView)
        setZoomScale()
    }*/
    
    func auImageViewExamples() {
        let imageview = AUImageView(frame: CGRect(x: 20, y: 350, width: self.view.frame.size.width - 40, height: 200))

        self.view.addSubview(imageview)
        imageview.isUserInteractionEnabled = true
        imageview.enableImageZoom = true
        //imageview.image = UIImage(named: "image.jpg")
        
        imageview.imageWithURL("http://swmini.hu/wp-content/uploads/2016/11/2WYfLt.jpg", completionHandler:{(isSuccess) in
        })
        
    }
    
    func auDateExamples() {
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "dd/MM/yyyy"
