Toggle navigation
Toggle navigation
This project
Loading...
Sign in
尹诚
/
Mapbox-iOS-SDK
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Justin R. Miller
2012-12-05 17:28:19 -0800
Commit
d9a039549c39bf9f0e5bf5d382e71ae7777aff57
1 parent
b2910bff
fixes #158: add support for callout subtitle via annotation subtitle
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
MapView/Map/RMAnnotation.h
MapView/Map/RMAnnotation.m
MapView/Map/RMMapView.m
MapView/Map/RMAnnotation.h
View file @
d9a0395
...
...
@@ -62,6 +62,9 @@
/** The annotation's title. */
@property
(
nonatomic
,
retain
)
NSString
*
title
;
/** The annotation's subtitle. */
@property
(
nonatomic
,
retain
)
NSString
*
subtitle
;
/** Storage for arbitrary data. */
@property
(
nonatomic
,
retain
)
id
userInfo
;
...
...
MapView/Map/RMAnnotation.m
View file @
d9a0395
...
...
@@ -38,6 +38,7 @@
@synthesize
coordinate
;
@synthesize
title
;
@synthesize
subtitle
;
@synthesize
userInfo
;
@synthesize
annotationType
;
@synthesize
annotationIcon
,
badgeIcon
;
...
...
@@ -65,6 +66,7 @@
self
.
mapView
=
aMapView
;
self
.
coordinate
=
aCoordinate
;
self
.
title
=
aTitle
;
self
.
subtitle
=
nil
;
self
.
userInfo
=
nil
;
self
.
quadTreeNode
=
nil
;
...
...
@@ -86,6 +88,7 @@
-
(
void
)
dealloc
{
self
.
title
=
nil
;
self
.
subtitle
=
nil
;
self
.
userInfo
=
nil
;
self
.
layer
=
nil
;
[[
self
.
mapView
quadTree
]
removeAnnotation
:
self
];
...
...
MapView/Map/RMMapView.m
View file @
d9a0395
...
...
@@ -1706,6 +1706,7 @@
_currentCallout
=
[
SMCalloutView
new
];
_currentCallout
.
title
=
anAnnotation
.
title
;
_currentCallout
.
subtitle
=
anAnnotation
.
subtitle
;
if
(
anAnnotation
.
layer
.
leftCalloutAccessoryView
)
{
...
...
Please
register
or
login
to post a comment