[self.mapView addMapLayer:[[AGSFeatureTableLayer alloc] initWithFeatureTable:fTable]];
AGSGDBFeatureTable* fTable = (AGSGDBFeatureTable*)layer; AGSGDBFeature* feature = [fTable featureWithTemplate:featureTemplate]; AGSPopupInfo *pi = [AGSPopupInfo popupInfoForGDBFeatureTable:fTable]; AGSPopup *p = [[AGSPopup alloc] initWithGDBFeature:feature popupInfo:pi]; self.popupsVC = [[AGSPopupsContainerViewController alloc] initWithPopups:@usingNavigationControllerStack:NO]; _popupsVC.delegate = self; _popupsVC.modalPresentationStyle = UIModalPresentationFormSheet; [self presentViewController:_popupsVC animated:YES completion:nil]; [_popupsVC startEditingCurrentPopup];
AGSGDBGeodatabase *geoDB = [[AGSGDBGeodatabase alloc] initWithPath:fullPath error:&error]; if (error) { NSLog(@"ERR: %@", error); } for (AGSGDBFeatureTable* fTable in geoDB.featureTables) { if ([fTable hasGeometry]) { AGSFeatureTableLayer *featureTableLayer = [[AGSFeatureTableLayer alloc] initWithFeatureTable:fTable]; NSLog(@"T: %d", fTable.canUpdate); featureTableLayer.visible = YES; featureTableLayer.delegate = self; [self.layers addObject:featureTableLayer]; } }
Runtime geodatabases created through ArcMap are not meant to be editable. They are view-only. There are no tools to take a modified runtime geodatabase and pull its changes into a source geodatabase on the desktop or in a database.