Posts

Post not yet marked as solved
3 Replies
1.1k Views
Previously the complication would say e.g. "23m" if there was 23 minutes until the taget date. In WatchOS 5, it says "2..". Am I doing something wrong or is this an Apple bug?Here's how I create the date provider:CLKRelativeDateTextProvider(date: targetDate, style: .naturalAbbreviated, units: [.hour, .minute, .second])
Posted
by mhalttu.
Last updated
.
Post not yet marked as solved
6 Replies
1.4k Views
I've been using MKMapSnapshotter to capture image snapshots of maps. In iOS 13 I only get grey boxes. Is anybody else seeing this? Is this a bug or am I doing something wrong?Here's what I do:MKMapSnapshotOptions *snapshotterOptions = [MKMapSnapshotOptions new]; snapshotterOptions.region = MKCoordinateRegionMakeWithDistance(coordinate, 300, 300); snapshotterOptions.mapType = MKMapTypeStandard; snapshotterOptions.showsPointsOfInterest = NO; snapshotterOptions.showsBuildings = NO; snapshotterOptions.size = snapshotSize; snapshotterOptions.scale = UIScreen.mainScreen.scale; MKMapSnapshotter *snapshotter = [[MKMapSnapshotter alloc] initWithOptions:snapshotterOptions]; [snapshotter startWithCompletionHandler:^(MKMapSnapshot *snapshot, NSError *error) { // Some error checking here. The error is nil. [self saveMapImage:snapshot.image]; }];
Posted
by mhalttu.
Last updated
.