Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1039] on IOS, Modules.Map.Annotation has a bug on left/rightButton

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionInvalid
Resolution Date2014-05-22T22:55:37.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator Modules, Titanium SDK & CLI
Labelsios
ReporterManuele Cappelleri
AssigneeRitu Agrawal
Created2014-05-22T21:09:52.000+0000
Updated2016-03-08T07:37:22.000+0000

Description

if you mix annotations with and without left/rightButton property, you end up with inconsistent results on annotations created without said properties. This is due to: if (left!=nil) { annView.leftCalloutAccessoryView = left; } if (right!=nil) { annView.rightCalloutAccessoryView = right; } To fix this, you can change the code to: if (left!=nil) { annView.leftCalloutAccessoryView = left; } else { annView.leftCalloutAccessoryView = nil; } if (right!=nil) { annView.rightCalloutAccessoryView = right; } else { annView.rightCalloutAccessoryView = nil; }

Comments

  1. Manuele Cappelleri 2014-05-22

    Please disregard. Wrong project! My error. Sorry 'about that!
  2. Ritu Agrawal 2014-05-22

    No problem! Resolving the ticket.

JSON Source