Deselecting an annotation programmatically


How do I automatically deselect the current drawing object? Currently it is still active and users have to then hide drawing tools on mobile or select pan again to pan around. I think it would be better to automatically go back to pan as soon as they have placed the object and only draw another object by selecting it again.


You can deselect an annotation programmatically by switching back to the pan tool. This can be done via the tool manager, eg. [self.toolManager changeTool:[PanTool class]];