ios - Is it possible to inherit from MKPolyline -
i'm building mapkit based app iphone.
i have number of mkpolylines added map.
however, instead of having mkpolyline, have own model class conforming mkoverlay protocol added map can access model properties when creating corresponding view in mapview:viewforoverlay.
the problem can't find way inherit mkpolyline because doesn't have init methods can call subclass' init. can create them using convenience methods.
how can bring model properties , mkpolyline behaviour?
you can set associated object attribute of class. allows bind instance variable existing class. make sure clean after yourself.
Comments
Post a Comment