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
ce208f0de9129d67395f0e2a6c88bed2d45d9fcf
1 parent
8ad846a2
fixes #158: add support for callout subtitle via annotation subtitle
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletions
MapView/Map/RMAnnotation.h
MapView/Map/RMAnnotation.m
MapView/Map/RMMapView.m
MapView/Map/RMAnnotation.h
View file @
ce208f0
...
...
@@ -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 @
ce208f0
...
...
@@ -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 @
ce208f0
...
...
@@ -1705,7 +1705,8 @@
_currentCallout
=
[
SMCalloutView
new
];
_currentCallout
.
title
=
anAnnotation
.
title
;
_currentCallout
.
title
=
anAnnotation
.
title
;
_currentCallout
.
subtitle
=
anAnnotation
.
subtitle
;
if
(
anAnnotation
.
layer
.
leftCalloutAccessoryView
)
{
...
...
Please
register
or
login
to post a comment