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.
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.
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
Actually hold that thought, the problem might be that I have an invalid value in one of the fields.
Ok. Keep us posted please.