AnsweredAssumed Answered

how to iterate the result from AGSGDBFeatureTable.queryResultsWithParameters

Question asked by mei.wei on Oct 1, 2015
Latest reply on Oct 6, 2015 by mei.wei

I got exception to access the results from queryResultsWithParameter, can someone please help?

 

let localFeatureTable = geodatabase.featureTables()[1] as! AGSGDBFeatureTable

localFeatureTable.queryResultsWithParameters(query , completion: { (tmpResult, error ) -> Void in

               

                print("error is \(error); result count is \(tmpResult.count)")

                let results = tmpResult as! [AGSFeature]

                for feature in results  {

                    print("feature: \(feature)")               <--- this line throws EXC_BAD_ACCESS

                }

Outcomes