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
11 years ago
Commit
428dbf612cc50b891c05d5832d6dfde8fe5dc890
1 parent
f2607e7a
avoid isnan() for pre-iOS 6 deployment
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
MapView/Map/RMMapScrollView.m
MapView/Map/RMMapScrollView.m
View file @
428dbf6
...
...
@@ -37,8 +37,11 @@
if
(
self
.
mapScrollViewDelegate
)
[
self
.
mapScrollViewDelegate
scrollView
:
self
correctedContentOffset
:
&
contentOffset
];
if
(
!
isnan
(
contentOffset
.
x
)
&&
!
isnan
(
contentOffset
.
y
))
if
(
!
[[
NSDecimalNumber
notANumber
]
isEqualToNumber
:
@
(
contentOffset
.
x
)]
&&
!
[[
NSDecimalNumber
notANumber
]
isEqualToNumber
:
@
(
contentOffset
.
y
)])
{
[
super
setContentOffset
:
contentOffset
];
}
}
-
(
void
)
setContentOffset
:(
CGPoint
)
contentOffset
animated
:(
BOOL
)
animated
...
...
@@ -46,8 +49,11 @@
if
(
self
.
mapScrollViewDelegate
)
[
self
.
mapScrollViewDelegate
scrollView
:
self
correctedContentOffset
:
&
contentOffset
];
if
(
!
isnan
(
contentOffset
.
x
)
&&
!
isnan
(
contentOffset
.
y
))
if
(
!
[[
NSDecimalNumber
notANumber
]
isEqualToNumber
:
@
(
contentOffset
.
x
)]
&&
!
[[
NSDecimalNumber
notANumber
]
isEqualToNumber
:
@
(
contentOffset
.
y
)])
{
[
super
setContentOffset
:
contentOffset
animated
:
animated
];
}
}
-
(
void
)
setContentSize
:(
CGSize
)
contentSize
...
...
Please
register
or
login
to post a comment