Original Image

ยท๐ŸŽ iOS & Swift
tintColor UIImageView - Instance Property ๋ทฐ ๊ณ„์ธต์—์„œ ํ…œํ”Œ๋ฆฟ ์ด๋ฏธ์ง€์— ์ƒ‰์กฐ๋ฅผ ์ง€์ •ํ•˜๋Š”๋ฐ ์‚ฌ์šฉ๋˜๋Š” ์ปฌ๋Ÿฌ์ž…๋‹ˆ๋‹ค. var tintColor: UIColor! { get set } default๋Š” nil์ž…๋‹ˆ๋‹ค. ๋งŒ์•ฝ nil์ด ์•„๋‹ˆ๋ผ๋ฉด ์ปฌ๋Ÿฌ๋Š” ์ด๋ฏธ์ง€ ๋ทฐ์— ์ฒจ๋ถ€๋œ ํ…œํ”Œ๋ฆฟ ์ด๋ฏธ์ง€์— ์ ์šฉ๋ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ์ ์œผ๋กœ tintColor๋Š” UIView๊ฐ€ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ํ”„๋กœํผํ‹ฐ์ž…๋‹ˆ๋‹ค. ์ƒ์œ„๊ฐ€ ๋˜๋Š” ๋ทฐ์˜ tintColor๋ฅผ ๋ณ€๊ฒฝํ•˜๋ฉด ์ƒ์†๋ฐ›๋Š” ํ•˜์œ„ ๋ทฐ์— ์ฐจ๋ก€๋Œ€๋กœ ์˜ํ–ฅ์„ ์ค„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. override func viewDidLoad() { view.tintColor = UIColor.red } func application(_ application: UIApplication, didFinishLaunchi..
taeeekki
'Original Image' ํƒœ๊ทธ์˜ ๊ธ€ ๋ชฉ๋ก