Im pretty new to mkmapview so I'll hope my question will be clear enough.
Let's say I have a code where im saving the userLocation in an array (MKuserLocation type). im saving this for every step the user take and than I want to display this.
How do I do that? how can I use this userlocation with the coordinates that I save and display the path?
* im adding this after the comment I was told to use MKmapoverlay. does someone can give me an example how to use this with coordinates? or have some guide (I really tried something clear enough on google but didn't)
Thanks
yes, you can make a path from thoses point. You must be careful to to have your array of point in the right order otherwise you will draw lines between point in every direction. you can draw a line with an mkoverlay
I have faced same issue few days ago and I found the sample application on GitHub.you can download the project from here.
I hope it will be helpful !!
Related
I started working with Unity platform just a few days ago. I want to create and object like this one: (http://www.bankingsense.com/wp-content/uploads/2014/09/credit-score-ratings.png) where the user will choose the appropriate answer. Each option will generate a different score that should be stored for later use.
Can anyone give me some tips ad guidelines to this?
Thank you very much!
VĂ¢nia
this is very simple. use one image as the scale background. use another image as the pointer. set the pivot and anchor of the pointer at the position where you want to rotate it. use transform.Rotate() in your code to rotate the pointer.
Is it possible to show directions from one point to another point recursively until i reach the destination from source point like Route or Path from Source to Destination in iPhone using MKMapVIew.
I tried with MKOverlayPath and MKpolyline but not able to proceed.
Please help me in this issue?
hello hope this will help you..
download this demo with this you can find the direction of the 2 position in map view and than you can use timer for updating its location after each second so its seems like what you want..
I am currently working on an app, which includes a paint function. It actually doesn't work that bad, but the problem is, that the refresh-rate or the frequency of the calls for the touchesMoved-method is too bad.
If you move the fingers fast over the screen, the lines get many edges and it doesn't look that good. So i thought about increasing the call-frequency for this method. Would that be a good and even possible solution for my problem?
Maybe you can help me with my problem. Thank you in advance.
Think about this approach: Look at Adobe's Ideas App on the AppStore. If touchesEnd, work with NSBezierPath to get a smoother look without edges. You basically store the points in touchesMoved in an array? So you got the points to insert in the Bezier Path functions. You have a edgy look while drawing but after releasing it looks kind of smooth. I did so in one of my projects and result is fairly okay.
(But there are many other approaches to build a drawing application.)
Demo App from Apple: Click here
I know there are a few questions about this but i just cant seem to find any good answer to the question. What I am doing is fetching information from a db and collect the info into annotations on a map in mapview (Iphone).
What I want is to update the information from the database every second or so and update the annotations so that the new locations is shown on the map. So for instance if coordinates are moving it will show the movement every second. Are there any standard methods for this or any other good fixes?
You can use [yourAnnotation setCoordinate:newCoordinate];
Pls see if this SO question helps you MKMapView moving Annotations Automatically - animate them?
I like to develop a hair styling application for which allows the user to take a picture and try different predefined hair styles.I need to correctly place the predefined hair in correct position of image.I really don't know from where i need to start.If any one have any ideas please share it. Thanks in advance .....
Start looking into OpenCV (image processing library) to detect the eyes position and face bounds. You can then compute the location where the hair has to be placed over.
http://opencv.willowgarage.com/wiki/FaceDetection
http://www.codeproject.com/KB/library/eyes.aspx - A sample project which exactly answers you