0

In my App, there is a offline Map presented from a sqlite file.

RMDBMapSource *mapSrc = [[RMDBMapSource alloc] initWithPath:@"map.sqlite"];
RMMapContents *contents = nil;
contents = [[RMMapContents alloc] initWithView:mapView tilesource:mapSrc];

The map.sqlite file is loaded from my resources and everything is displayed correct.

My Problem: I am downloading new versions of the map.sqlite to my Apps documents folder. How can I load my MapSource from a file in the documents folder?

Thanks in advance!

jussi
  • 2,166
  • 1
  • 22
  • 37

1 Answers1

2

You simply need to write:

RMDBMapSource *mapSrc = [[RMDBMapSource alloc]  initWithPath:@"../Documents/yourdb.sqlite"];
Zoltan Toth
  • 46,981
  • 12
  • 120
  • 134
dlkobe 80
  • 36
  • 1