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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -