func screenShot(targetView : UIView) -> UIImage{
UIGraphicsBeginImageContextWithOptions(targetView.bounds.size, false, 0)
targetView.drawViewHierarchyInRect(targetView.bounds, afterScreenUpdates: false)
let snapdImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
return snapdImage!
}