Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
Z
ZhiJi-Overseas
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmj
ZhiJi-Overseas
Commits
656666db
Commit
656666db
authored
Jul 23, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
b5dd20ca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
20 deletions
+1
-20
ZJFriendTrackMapViewController.m
...i/Classes/Map/Controller/ZJFriendTrackMapViewController.m
+1
-20
No files found.
ZhiJi/Classes/Map/Controller/ZJFriendTrackMapViewController.m
View file @
656666db
...
...
@@ -234,7 +234,6 @@
weakSelf
.
stratDate
=
beginDate
;
weakSelf
.
endDate
=
endDate
;
};
}
-
(
ZJAlertView
*
)
getAlertView
:
(
NSString
*
)
title
subtitle
:
(
NSString
*
)
subtitle
leftButtonTitle
:
(
NSString
*
)
leftButtonTitle
rightButtonTitle
:
(
NSString
*
)
rightButtonTitle
{
...
...
@@ -318,7 +317,7 @@
// [MBProgressHUD showMessage:kLocalizedString(@"track_friend_timeWithin_no_location")];
return
;
}
//
[_self drawLineAction];
[
_self
drawLineAction
];
[
_self
drawLineWithLocationArray
:
_self
.
locations
];
}
else
if
([[
response
objectForKey
:
@"status"
]
integerValue
]
==
105
)
{
[
MBProgressHUD
showError
:[
response
objectForKey
:
@"msg"
]
toView
:
self
.
view
];
...
...
@@ -389,24 +388,6 @@
//移除
[
self
.
GDMapView
removeOverlay
:
self
.
commonPolyline
];
// need get user location info
if
([
CLLocationManager
locationServicesEnabled
]
&&
([
CLLocationManager
authorizationStatus
]
==
kCLAuthorizationStatusAuthorizedWhenInUse
||
[
CLLocationManager
authorizationStatus
]
==
kCLAuthorizationStatusNotDetermined
||
[
CLLocationManager
authorizationStatus
]
==
kCLAuthorizationStatusAuthorized
))
{
// do nothing
}
else
if
([
CLLocationManager
authorizationStatus
]
==
kCLAuthorizationStatusDenied
)
{
//定位不能用
[
AlertControllerTool
alertControllerWithTitle
:
kLocalizedString
(
@"alert_location_switch"
)
message
:
kLocalizedString
(
@"alert_location_service"
)
cancelTitle
:
kLocalizedString
(
@"alert_cancel"
)
cancelBlock
:^
{
}
confirm
:
kLocalizedString
(
@"alert_setting"
)
confirmBlock
:^
(
id
s
)
{
NSURL
*
url
=
[
NSURL
URLWithString
:
UIApplicationOpenSettingsURLString
];
if
([[
UIApplication
sharedApplication
]
canOpenURL
:
url
])
{
if
(
@available
(
iOS
10
.
0
,
*
))
{
[[
UIApplication
sharedApplication
]
openURL
:
url
options
:@{}
completionHandler
:
nil
];
}
else
{
[[
UIApplication
sharedApplication
]
openURL
:
url
];
}
}
}
finishBlock
:
nil
];
return
;
}
MAPointAnnotation
*
pointAnnotation1
=
[[
MAPointAnnotation
alloc
]
init
];
pointAnnotation1
.
coordinate
=
CLLocationCoordinate2DMake
(
self
.
locations
.
firstObject
.
latitude
,
self
.
locations
.
firstObject
.
longitude
);
pointAnnotation1
.
title
=
@"start"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment