AnsweredAssumed Answered

create a custom popup out

Question asked by ozcandurak on Apr 25, 2016


Is it possible to create a popup without using AGSpopupViewController with same functionallity like editing, moving and deleting feature in Swift.

 

Or is it possible to extend it ?

 

Why i require it :

 

1 - I would like to add extra button near (Move, Attachment) fields. But i cannot achieve it.

2 - I would like to append related record in popups.

 

What i have already done:

 

1- create a tableview and displayed all feature

        //instantiate an object of the FeatureDetailsViewController
        let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
        let featureDetailsViewController = storyboard.instantiateViewControllerWithIdentifier(kFeatureDetailControllerIdentifier) as! FeatureDetailsViewController
        
        //assign the feature to be presented in the details view
        featureDetailsViewController.feature = callout.representedObject as! AGSGDBFeature
        featureDetailsViewController.displayFieldName = "NAME"
        
        //in case of an iPad present as a form sheet
        if AGSDevice.currentDevice().isIPad() {
            featureDetailsViewController.modalPresentationStyle = .FormSheet
        }
        
        self.navigationController?.presentViewController(featureDetailsViewController, animated: true, completion: nil)
    }

 

I can display all the data but cannot edit or delete it.

Outcomes