I was able to display the logo in two ways.
Thank you so much.
Post
Replies
Boosts
Views
Activity
Thank you for reply.
It’s problem only my project. MapSample and other project has no problem.
I check MapSample project file, and Map View attribute inspector.
But I think no diffrerent between sample and my project.
MapView has MKAppleLogoImageView but not displayed.
check below
map _MKMapContentView
map MKAttributionLabel
map MKAppleLogoImageView
map UIView
map frame: (10.0, 837.0, 0.0, 0.0)
map isHidden: false
map alpha: 1.0
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
for view in mapView.subviews {
print("map", type(of: view))
}
if let logoView = mapView.subviews.compactMap({ $0 as? UIImageView }).first(where: { String(describing: type(of: $0)).contains("MKAppleLogoImageView") }) {
print(“map frame: \(logoView.frame)")
print("map isHidden: \(logoView.isHidden)")
print("map alpha: \(logoView.alpha)")
}
}