init(colorLiteralRed:,green:,blue:,alpha:) deprecated in Swift 4

init(colorLiteralRed:green:blue:alpha:) is intended to be used with Color Literals which are managed by development tools. Why don’t you use normal init(red:green:blue:alpha:)? let startingColorOfGradient = UIColor(red: 255.0/255.0, green: 255.0/255.0, blue: 255.0/255.0, alpha: 1.0).cgColor let endingColorOFGradient = UIColor(red: 251.0/255.0, green: 247.0/255.0, blue: 234.0/255.0, alpha: 1.0).cgColor let gradient: CAGradientLayer = CAGradientLayer() (Writing like 234.0/255.0 is not mandatory, in … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)