IOS SWIFT 랜덤컬러 만들기 (Generate a Random Color , UIColor)
12345678910111213 import UIKit func getRandomColor() -> UIColor{ let randomRed:CGFloat = CGFloat(drand48()) let randomGreen:CGFloat = CGFloat(drand48()) let randomBlue:CGFloat = CGFloat(drand48()) return UIColor(red: randomRed, green: randomGreen, blue: randomBlue, alpha: 1.0) }Colored by Color Scriptercs
IOS - SWIFT
2017. 11. 27. 11:27
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday