I tried to set view point for ArcGIS map and encountered an error exception:
ArcGIS Runtime Error Occurred. Set a breakpoint on C++ exceptions to see the original callstack and context for this error: Error Domain=com.esri.arcgis.runtime.error Code=2 "Invalid argument." UserInfo={NSLocalizedFailureReason=target_extent has zero for width or height., NSLocalizedDescription=Invalid argument., Additional Message=target_extent has zero for width or height.}
The code to set the view point is attached bellow, and I recognized that the error just happens with some AGSPoint.