(ArcGIS iOS swift SDK 100) Cannot access AGSArcGISMapImageSubLayer.sublayers if layer is a group layer in map service (mxd). The app is hang on?
Having the same issue, any luck on work around yet?
This is still a bug. Android SDK 100.0 do not have this bug.
The solution is reflection please see the code:
(lyr is an AGSArcGISMapImageSubLayer object)
let sublayers=lyr.value(forKey:"_subLayers") as! NSMutableArray
for sublyr in sublayers{
let slyr=(sublyr as! AGSArcGISMapImageSubLayer)
…...
}