I'm embedding a MKMapView in a UITableViewCell which works quite well. Unfortunately, the map can not be used e.g. zoomed, scrolled or tapped. Even the legal link from Apple is not tappable. Any advice is welcome.
let cell = UITableViewCell(style: .default, reuseIdentifier: "locationDetailMapCell")
						
let mapView = MKMapView()
						
mapView.frame = CGRect(x: 0, y: 0, width: view.frame.size.width, height: 400)
mapView.mapType = .standard
mapView.showsUserLocation = true
mapView.isZoomEnabled = true
mapView.isScrollEnabled = true
mapView.setRegion(MKCoordinateRegion(center: CLLocationCoordinate2D(latitude: CLLocationDegrees(currentLocation.latitude), longitude: CLLocationDegrees(currentLocation.longitude)), span: MKCoordinateSpan(latitudeDelta: 0.02, longitudeDelta: 0.02)), animated: true)
						
let pin = MKPointAnnotation()
pin.coordinate = CLLocationCoordinate2D(latitude: CLLocationDegrees(currentLocation.latitude), longitude: CLLocationDegrees(currentLocation.longitude))
mapView.addAnnotation(pin)
						
cell.addSubview(mapView)
						
return cell
Post
Replies
Boosts
Views
Activity
I have a strange problem using an alternate icon using setAlternateIconName.
A primary app icon is defined via the Assets.xcassets and an alternative icon via the Info.plist (the files are copied into the project).
Everything works fine on an iPhone 11 Pro Max with iOS 15.0.
On an iPhone Xs with iOS 15.0, however, I observe the following behavior: the primary icon is visible when installing the app. The alternative icon can also be activated. If I then switch back to the primary icon, the alternative and not the primary icon appears directly in the iOS in-app dialog. If I then move the app to the background, I see the primary icon on the home screen for a second as desired, but then it changes back to the alternative icon. Thus, the primary icon cannot be restored at any time. At the same time, the app also receives the information that the alternative icon name is nil, so that the primary icon should be displayed - but this is not the case.
I also don't get an error message about a possibly missing image file and it only happens on one of two (physical) test devices.
Does anyone have any advice on what to investigate further?
Hi,
since Xcode 15 I have a severe problem.
I have opened organizer and select "Crashes". Xcode crashed during loading data. Since then, I cannot open Organizer as it crashes instantly.
Only removing all preferences for Xcode makes it work again. But only until I select "Crashes" again.
For five days now, there have been no up-to-date data in Sales and Trends again. This seems to be happening every other week, and it's really annoying. It would be great if Apple could finally bring some stability to this.