ArcGIS Runtime SDK for iOS

Add / delete related records

Description

This sample demonstrates how to add or delete related features on an origin feature.

How it works

To add a related feature, the sample uses createFeature(attributes:geometry:) method on the related feature table AGSServiceFeatureTable. The new feature is then related to the origin feature using relate(to:) method on AGSFeature. Then its added to the related feature table using add(_:completion:) method.

Similarly, to delete a related feature, the sample uses delete(_:completion:) method on the related feature table AGSServiceFeatureTable. The changes are applied to the service by calling applyEdits(completion:) on the feature table when tapped on the Done button.


In this topic
  1. Description