Tuesday, 8 December 2015

SWIFT: BUTTTON CLICK CHANGE THE TOUCH EFFECT

func fadeButton(button:UIButton){
        UIView.animateWithDuration(3.0, delay: 0.0, options: UIViewAnimationOptions.CurveEaseOut, animations: {
            button.alpha = 0.3
            }, completion: {
                (finished: Bool) -> Void in
                // Fade in
                UIView.animateWithDuration(1.0, delay: 0.0, options: UIViewAnimationOptions.CurveEaseIn, animations: {
                    button.alpha = 1.0
                    }, completion: nil)
        })

    }

No comments:

Setting Up Multiple App Targets in Xcode from a Single Codebase

 To create two different apps (like "Light" and "Regular") from the same codebase in Xcode, you can follow these steps b...