Post

Replies

Boosts

Views

Activity

Reply to CLLocationButton not work for Chinese Simplified localization.
The xcode project adds Chinese Simplified localization, device language and region switch to Chinese Simplified/China Mainland, then CLLocationButton does not display the label and icon, and the dialog box will not be displayed when clicked. If you switch to en, everything works fine. import UIKit import CoreLocationUI class ViewController: UIViewController {  override func viewDidLoad() {   super.viewDidLoad()       let button = CLLocationButton(frame: CGRect(origin: CGPoint(x: 10, y: 60), size: CGSize(width: 200, height: 44)))   button.icon = .arrowFilled   button.label = .currentLocation   button.cornerRadius = 12.0   view.addSubview(button)  } }
Dec ’21
Reply to CLLocationButton not work for Chinese Simplified localization.
The xcode project adds Chinese Simplified localization, device language and region switch to Chinese Simplified/China Mainland, then CLLocationButton does not display the label and icon, and the dialog box will not be displayed when clicked. If you switch to en, everything works fine. import UIKit import CoreLocationUI class ViewController: UIViewController {  override func viewDidLoad() {   super.viewDidLoad()       let button = CLLocationButton(frame: CGRect(origin: CGPoint(x: 10, y: 60), size: CGSize(width: 200, height: 44)))   button.icon = .arrowFilled   button.label = .currentLocation   button.cornerRadius = 12.0   view.addSubview(button)  } }
Dec ’21