[AC-1777] systemButton: DISCLOSURE displays as INFO_DARK on Annotation.rightButton
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | n/a |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2014-02-04T05:55:45.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | Titanium SDK & CLI |
| Labels | n/a |
| Reporter | Manuel Lehner |
| Assignee | Ritu Agrawal |
| Created | 2014-02-03T12:27:52.000+0000 |
| Updated | 2016-03-08T07:40:40.000+0000 |
Description
I'm trying to use a disclosure system button as rightButton of an map Annotation: http://docs.appcelerator.com/titanium/latest/#!/api/Modules.Map.Annotation
Here is my code:
var annotation = map.createAnnotation({
latitude: lat,
longitude: lng,
title: "Test",
image: '/images/pin_selected.png',
rightButton: Ti.UI.iPhone.SystemButton.DISCLOSURE,
});
$.mapview.addAnnotation(annotation);
See attached images for result and expected.
Attachments
| File | Date | Size |
|---|---|---|
| expected.png | 2014-02-03T12:27:52.000+0000 | 80993 |
| result.png | 2014-02-03T12:27:52.000+0000 | 60043 |
The size and appearance of the disclosure button has changed in iOS 7. Please refer to the following link for more information. https://developer.apple.com/library/ios/documentation/userexperience/conceptual/TransitionGuide/Controls.html#//apple_ref/doc/uid/TP40013174-CH9-SW5
OK. Thanks for the hint. I was just wondering why DISCLOSURE and INFO_DARK appears to be the same in this case and there is no kind of systemButton for HAS_CHILD or something. I will go for a custom rightView. Ticket can be closed.