         NSRunLoop.mainRunLoop().addTimer(timer, forMode: NSRunLoopCommonModes)
     }
 }
+
+

        convenience init(text: String, sender: UIViewController, disableUI: Bool) {
            let width = sender.view.frame.width / 1.6
            let height = width / 3
            self.init(frame: CGRect(x: sender.view.frame.midX - width/2, y: sender.view.frame.midY - height/2, width: width, height: height)) // height*2 /2 olmali view size duzelince
            backgroundColor = Settings.CLABackgroundColor
            alpha = 1
            layer.cornerRadius = 8

                textLabel.text = Settings.CLAFailText
            }
            addSubview(icon)

            if animated {
                icon.alpha = 0
                activityView.stopAnimating()
