ios - Path Drawing with different colors -


I'm working on physical activity application which automatically detects your activity speed, which is either driving or walking I have a map in my application and I have adopted the code given by apple, so that users can locate and find driving paths.

When the user runs, the drawing must be green; When the user drives, then the drawing should be red.

However since I am using a single mapview controller and whenever there is a change in user activity, it also changes to the previous color. I am not able to get two different colors anyway Could

You must apply & lt; MKMapViewDelegate & gt; and ; MKOverlay & gt;) Overlay {if ([overlay hackinfax: M.K. polyline.clus]) {MkPollelineview * Lineview = [[Mkapolelineview Alok] Init With Overlay: Overlay]; If (flag == Yes) {lineView.strokeColor = [UIColor greenColor]; Flag = No; } And {lineView.strokeColor = [UIColor orangeColor]; } LineView.lineWidth = 5.0f; See the return line; } Return zero; }

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -