Select to view content in your preferred language

No Done button when editing feature

773
4
06-11-2019 12:58 PM
SteveMiller4
Emerging Contributor

I'm working on adding an AGSPopupsViewController, and I have it displaying the data, and I've got it displaying custom buttons in the navigation controller it's displayed in, but after editing the feature there seems to be no way to save it, as the Done button is gone. I don't think it's anything in the WebMap settings it's using, since the feature can be edited in the ArcGIS Collector app, so I think I'm missing something on the iOS side of things, but I have no idea what.

0 Kudos
4 Replies
Nicholas-Furness
Esri Regular Contributor

Hi Steve.

Can you share some more about how you're presenting and using the AGSPopupsViewController? A repro case would be really helpful.

We have seen the Done button disappear in the simulator, which appeared to be a simulator bug. If you rotate the simulator (command + right or left cursor) then the button reappeared. But we've never seen that on a device.

Cheers,

Nick.

0 Kudos
SteveMiller4
Emerging Contributor

Hi Nick,

I'm displaying the AGSPopupsViewController in a UINavigationController in the master panel of a UISplitViewController. I configure it for display using

let popupsVC = AGSPopupsViewController(popups: nil, containerStyle: .navigationController)

My current guess is that I'm supposed to add the navigationItem.rightBarButtonItem for the AGSPopupsViewController in

func popupsViewController(_ popupsViewController: AGSPopupsViewController, didStartEditingFor popup: AGSPopup) 

to be a Done button that calls AGSPopupsViewController.finishEditingCurrentPopup, but let me know if there is a better solution.

Steve

0 Kudos
SteveMiller4
Emerging Contributor

Actually hold that thought, the problem might be that I have an invalid value in one of the fields.

0 Kudos
Nicholas-Furness
Esri Regular Contributor

Ok. Keep us posted please.

0 Kudos