<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Online-Offline Editing Sample in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315437#M2778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Shamin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also one more thing, Isnt it better to use NSHomeDirectory() instead of TemporaryDirectory to store my json files because the files get deleted from NSTemporary directory? if the app is getting an offline start then NSHomeDirectory would be a better choice right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Humza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 May 2013 02:33:41 GMT</pubDate>
    <dc:creator>HumzaAkhtar</dc:creator>
    <dc:date>2013-05-07T02:33:41Z</dc:date>
    <item>
      <title>Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315429#M2770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When the sample app is taken offline all the line features disappear... Is this the normal behaviour of the app? However, Looking into the code, the offline feature layer is already initialised with the feature layer definition and feature set json "[self initWithLayerDefinitionJSON:featureLayerDefinition featureSetJSON:featureSetDictionary];". Based on the API documentation, this initializer should display/retain the features within the visible extent on offline mode... I need to cache and display all the features in the visible extent upon taking the app offline. How do I achieve this in the sample?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shimin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 08:16:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315429#M2770</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2013-04-06T08:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315430#M2771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tried the codes below following the [self initWithLayerDefinitionJSON:featureLayerDefinition featureSetJSON:featureSetDictionary]... &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//trying to display the features while offline...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSLog(@"%i", self.graphicsCount);&amp;nbsp; //the 5 graphics are already there but not showing&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AGSFeatureSet *featureSet = [[AGSFeatureSet alloc] initWithJSON:featureSetDictionary];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[self addGraphics:featureSet.features];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;NSLog(@"%i", self.graphicsCount); //now the number of graphics are doubled (10), but still now showing...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the graphics are already in the feature layer but just not drawing on the screen. There must be a setting somewhere that prevents them from drawing on the screen... Any idea?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shimin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Apr 2013 22:03:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315430#M2771</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2013-04-06T22:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315431#M2772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm rephrasing my question just for the final try to get any answers if possible...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to display features offline in a feature layer that is created and initialised with the initWithLayerDefinitionJSON: featureSetJSON: method in order to edit those features offline? If it's not possible what would be the alternatives? I need to be able to collect new features and edit existing features while offline.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the online-offline sample workflow I'm able to edit features (attributes, geometry &amp;amp; attachments) online. What I also need is to be able to save existing features in the visible extent to devices while online and edit them while offline. Is this possible within the sample workflow?&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot for your help in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shimin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 20:19:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315431#M2772</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2013-04-10T20:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315432#M2773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please change following code line in OnlineOfflineFeatureLayer.m and when you go offline, features from visible extent will be available/displayed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Change&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.spatialRelationship = AGSSpatialRelationshipEnvelopeIntersects;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;query.spatialRelationship = AGSSpatialRelationshipIntersects;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nimesh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 17:23:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315432#M2773</guid>
      <dc:creator>NimeshJarecha</dc:creator>
      <dc:date>2013-04-18T17:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315433#M2774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Nimesh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's it! The simple spatial query relationship change did the trick!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shimin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Apr 2013 22:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315433#M2774</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2013-04-19T22:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315434#M2775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Nimesh,&lt;BR /&gt;&lt;BR /&gt;That's it! The simple spatial query relationship change did the trick!&lt;BR /&gt;&lt;BR /&gt;Many thanks for your help.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Shimin&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However if we start the application for the first time when we are offline then the application doesnot load the trail types? right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Humza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 03:36:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315434#M2775</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2013-04-30T03:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315435#M2776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Humza,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case you need to initialise the feature layer from a feature layer definition json file which is created for you when you are online and taking it offline in the tmp directory of the app in the iphone simulator. I copied the FeatureLayerDefinition json file to the Documents directory of my app and always initialize the feature layer with the json file regardless of online or offline...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shimin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Apr 2013 05:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315435#M2776</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2013-04-30T05:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315436#M2777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Humza,&lt;BR /&gt;&lt;BR /&gt;In this case you need to initialise the feature layer from a feature layer definition json file which is created for you when you are online and taking it offline in the tmp directory of the app in the iphone simulator. I copied the FeatureLayerDefinition json file to the Documents directory of my app and always initialize the feature layer with the json file regardless of online or offline...&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Shimin&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thankyou for your reply Shamin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Humza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 18:34:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315436#M2777</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2013-05-06T18:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315437#M2778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Shamin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also one more thing, Isnt it better to use NSHomeDirectory() instead of TemporaryDirectory to store my json files because the files get deleted from NSTemporary directory? if the app is getting an offline start then NSHomeDirectory would be a better choice right?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Humza&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 02:33:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315437#M2778</guid>
      <dc:creator>HumzaAkhtar</dc:creator>
      <dc:date>2013-05-07T02:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Online-Offline Editing Sample</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315438#M2779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Humza,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I include the feature layer definition files in my app's bundle. When my app launches I copy the files to the app's Documents directory and then read the definitions from there to initialize the feature layers. The reason putting the files in the app's Documents directory is that should any of the definition changes I could use iTunes file sharing to update the files without having to recompile the app...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Shimin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@implementation FCNSWGISAppDelegate&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Override point for customization after application launch.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //an example of the definition file name: lineFeatureLayerDefinition.json&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FCNSWUtils copyFileInBoundleToDocumentsFolder:lineFeatureLayerDefinitionJsonFile withExtension:lineFeatureLayerDefinitionJsonFileExtension];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FCNSWUtils copyFileInBoundleToDocumentsFolder:pointFeatureLayerDefinitionJsonFile withExtension:pointFeatureLayerDefinitionJsonFileExtension];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FCNSWUtils copyFileInBoundleToDocumentsFolder:polygonFeatureLayerDefinitionJsonFile withExtension:polygonFeatureLayerDefinitionJsonFileExtension];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return YES;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;@implementation FCNSWUtils&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+(NSString *) documentsPath&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *documentsDirectory = [paths objectAtIndex:0];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return documentsDirectory;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;+(void) copyFileInBoundleToDocumentsFolder:(NSString *)fileName withExtension:(NSString *)extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *documentDirectory = [self documentsPath];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *filePath = [documentDirectory stringByAppendingPathComponent:[NSString stringWithString:fileName]];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filePath = [filePath stringByAppendingString:@"."];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; filePath = [filePath stringByAppendingString:extension];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check if file is already in Documents folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if not, copy it from the bundle.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSFileManager *fileManager = [NSFileManager defaultManager];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(![fileManager fileExistsAtPath:filePath])&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //get the path of the file in the bundle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSString *pathToFileInBundle = [[NSBundle mainBundle] pathForResource:fileName ofType:extension];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //copy the file in the bundle to the Documents folder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSError *error = nil;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bool success = [fileManager copyItemAtPath:pathToFileInBundle toPath:filePath error:&amp;amp;error];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(success)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"File copied from bundle to Documents.");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NSLog(@"%@", [error localizedDescription]);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 01:02:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/online-offline-editing-sample/m-p/315438#M2779</guid>
      <dc:creator>ShiminCai</dc:creator>
      <dc:date>2013-05-08T01:02:52Z</dc:date>
    </item>
  </channel>
</rss>

