DK
Size: a a a
DK
D
П
R
D
setTitleColor(.red, for: .highlighted)
П
setBackgroundColor(color: UIColor, forState: UIControl.State) {
self.clipsToBounds =
true
UIGraphicsBeginImageContext(CGSize(width: 1, height: 1))
if
let context = UIGraphicsGetCurrentContext() {
context.setFillColor(color.cgColor)
context.fill(CGRect(x: 0, y: 0, width: 1, height: 1))
let colorImage = UIGraphicsGetImageFromCurrentImageContext()
UIGraphicsEndImageContext()
self.setBackgroundImage(colorImage, for: forState)
}
}
textButton.setBackgroundColor(color: .red, forState: UIControl.State.highlighted)
П
setTitleColor(.red, for: .highlighted)
П
D
П
MO
CLLocationManager()
?B
CLLocationManager()
?IG
CLLocationManager()
?MO
locationManager.startMonitoring
х
А
х
D