'Cannot remove an observer <AGSDynamicMapServiceLayer 0x541dde0> for the key path "dpi" from <AGSDynamicMapServiceLayer 0x541dde0> because it is not registered as an observer.'
If you want to subclass the dynamic layer then you should use AGSDynamicLayer(ForSubclassEyesOnly) .
Regards,
Nimesh