Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1027] Map crashing the app

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:55:00.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.4.0
ComponentsiOS
Labelsdefect, ios, iphone, map
Reporterctredway
AssigneeReggie Seagraves
Created2011-04-15T02:41:51.000+0000
Updated2011-04-17T01:55:00.000+0000

Description

Ok, the file attached has a map view added to it. When the map is touched, the app crashes.

Attachments

FileDateSize
win2.js2011-04-15T02:41:52.000+0000790

Comments

  1. Nolan Wright 2011-04-15

    can you please specify the environment where there crash happens (iphone or ipad, 3.1.x, 3.2 or 4.0)?

  2. ctredway 2011-04-15

    iphone sdk is 3.1.x and I tagged it as iphone.

  3. Blain Hamon 2011-04-15

    Okay, I've done a fix that causes it to not crash, but the sample code has a bug in it which will cause the pin to appear at 0,0, with no title, etc. Namely, that in the sample code, results is treated as an object with properties, but results is defined as an array of objects.

    IE results.title is null, and results[0].title is the value desired.

  4. Jeff Haynie 2011-04-15

    (from [eb8dbe6134e407550a2c32ce5e74d7d9bea290a8]) Map annotations will now sanitizes Title and Subtitle in case they were set to nonstrings. Closes #1027 http://github.com/appcelerator/titanium_mobile/commit/eb8dbe6134e407550a2c32ce5e74d7d9bea290a8"> http://github.com/appcelerator/titanium_mobile/commit/eb8dbe6134e40...

JSON Source