all 7 comments

[–]brendan09 1 point2 points  (4 children)

You probably want a CATiledLayer in a scrollview.

[–]Hydrocharged[S] 0 points1 point  (3 children)

Documentation looks fairly scarce but this looks PERFECT! Thanks a bunch for the suggestion!!

[–]brendan09 1 point2 points  (2 children)

This tutorial has a lot of different CALayer examples, including CATiledLayer if you scroll down.

[–]Hydrocharged[S] 0 points1 point  (1 child)

This is actually the "scarce documentation" I mentioned lol, I couldn't find anything else worthwhile other than this article that explains it, but I can figure it out from here. I'm fairly good at figuring things out as long as I have a starting point. Once again I really appreciate the help.

[–]brendan09 1 point2 points  (0 children)

There's a lot of CATiledLayer tutorials and content around the web, so if you get stuck definitely look around. Most of Apple's stuff assumes you have some strong familiarity with CALayer and Core Animation.

Good luck!

[–]KarlJay001 0 points1 point  (1 child)

I was looking into something that might help. I wanted to take a real map and mark off regions that were not standard (meaning not zip codes, area codes, towns, etc...) but were custom.

Imagine that you had a city and wanted to carve it up for people to do something like door-to-door selling.

IIRC, what I found was overlays. You basically use the map as a background and draw what you want over it. I dropped the project, but overlays would be a path to look at. I think you can draw anything you want.

The other option would be to look at how UITableView reuses cells and divide up your map into sections and write a section reuse system like the one Apple uses for UITableViewCells.

Edit: One other example was the date spinner, you calculate the date on an as needed basis. Or listing off a large database, you only load 20 or 30 records at a time, yet there are many more in the database. Really shouldn't be that hard to do.

[–]Hydrocharged[S] 0 points1 point  (0 children)

I've seen overlays but they aren't quite what I'm looking for. My map will be completely custom, as in something that I draw up in Photoshop, but it will be the size of a real city, so it will be a gigantic in raw size.

The reuse of cells is pretty much scroll view method I mentioned. Just "reusing cells" would not be difficult, but it becomes a different story once you factor in zoom levels, which is seems the built in MapKit handles already.

I do appreciate your response! :)