[TIMOB-1027] Map crashing the app
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:55:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.4.0 |
Components | iOS |
Labels | defect, ios, iphone, map |
Reporter | ctredway |
Assignee | Reggie Seagraves |
Created | 2011-04-15T02:41:51.000+0000 |
Updated | 2011-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
File | Date | Size |
---|---|---|
win2.js | 2011-04-15T02:41:52.000+0000 | 790 |
can you please specify the environment where there crash happens (iphone or ipad, 3.1.x, 3.2 or 4.0)?
iphone sdk is 3.1.x and I tagged it as iphone.
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.
(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...