My project is almost complete, missing only the last thing and now I'm stock.
I have the past several days trying to find a simple example on how to locate static pins on a map. But I can't find a good example or a good tutorial to do just that. I therefore seek a helpful person who would like to make a very simple example without unnecessary things that I can download. Example should be a map where there is located a minimum of two needles. So I can see what steps I should follow. My project will contain +100 needle when it is finished.
Many thanks for your time, I'm appreciated it. Is it possible to get an example with all the project files? This download only hold the .m and the .h file. Just so i can see it works in my simulator.
It's a snippet from a project, so I'm afraid that I cannot send all of it. However, create a new view-based project, and add the code below into the -[viewDidLoad] method and you should see it working. Make sure you import the AddressAnnotation class as well.
It sounds like you have mastered these things. I do not know if it's too much to ask, but will you make a quick new project and set up those thinks? So i can download the full functional example. It will means a lot to me.
I waited to the last with this map stuff, be course i think it will be easy. but no!
Speed don't do it, you've done more than enough. This guy is just lazy now, you told him exactly what to do and even provided with him code and told him where to place it.
Thar, what part of Speed's instructions are you having trouble with?
__________________
If you are looking for a quality developer, I'm your man. Give me a PM if you are interested.
Just paste the code in -[viewDidLoad:] after importing your files. Easy ;-)
For a fee, I would be able to implement the map in your current project, and/or send you the completed XCode project containing this code.
Hello Speed
Okay I will try, it just be course i'm not sure what you mean with import. Is it #import "blabla.h" or copy the files you uploaded in to the new project folder?
Its nice to know that you will do it for a fee, if I can't solved this problem myself.
Okay I will try, it just be course i'm not sure what you mean with import. Is it #import "blabla.h" or copy the files you uploaded in to the new project folder?
Its nice to know that you will do it for a fee, if I can't solved this problem myself.
I let you here anyway.
Thar
Both! You have to have the files in your project, and then link to them in your .m file.
Drag Files into XCode -> Check off "Copy" -> Open your viewController.m file -> Import it like so:
This code works fine as long only one arrow is needed. To add more arrows I will need to use an array right? And every time i have completed one arrow I'm stock. I hate to have unnecessary code in my projects. love to know that thinks is made right.
If you need multiple annotations, you can create an array containing a series of dictionaries dictionary each of which contains your longitude and latitude values.
Something like this:
Code:
for (NSDictionary *d in myArray) {
float long = [[d objectForKey:@"long"] floatValue];
float lat = [[d objectForKey:@"lat"] floatValue];
// insert into map here
}
If you need multiple annotations, you can create an array containing a series of dictionaries dictionary each of which contains your longitude and latitude values.
Something like this:
Code:
for (NSDictionary *d in myArray) {
float long = [[d objectForKey:@"long"] floatValue];
float lat = [[d objectForKey:@"lat"] floatValue];
// insert into map here
}
Okay, i don't think I'm strong enough to make this on my own. What kind of fee are we talking about if you should make an example using an array? And how can I pay you?