Post

Replies

Boosts

Views

Activity

Comment on Subclassing MKPolyline (MapKit)
Sorry, late to the game. In 2025, is this the way? MKCircle says it's not meant to be subclassed, but doesn't specifically say it will break things. I got a subclass of MKCircle working fine when calling a "convenience" initializer of MKCircle. Ditto MKPolyline. But not MKMultiPolyLine. It crashes with unrecognized selector sent to [ points], once subclassed, even when initialized with its primary initializers, and a var member set externally.
Topic: Programming Languages SubTopic: Swift Tags:
Apr ’25