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
a09bd3ff
Commit
a09bd3ff
authored
Jul 31, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
e15f2a20
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
95 additions
and
8 deletions
+95
-8
project.pbxproj
ZhiJi.xcodeproj/project.pbxproj
+6
-0
ZJLocationRemindSelectController.m
...sses/LocationAttention/ZJLocationRemindSelectController.m
+13
-0
ZJMapPinchGestureRecognizer.h
ZhiJi/Classes/Map/Controller/ZJMapPinchGestureRecognizer.h
+20
-0
ZJMapPinchGestureRecognizer.m
ZhiJi/Classes/Map/Controller/ZJMapPinchGestureRecognizer.m
+48
-0
TQNetworkTools.m
ZhiJi/Classes/Tools/Network/TQNetworkTools.m
+8
-8
No files found.
ZhiJi.xcodeproj/project.pbxproj
View file @
a09bd3ff
...
@@ -158,6 +158,7 @@
...
@@ -158,6 +158,7 @@
A9764A5C2492380D00463B78
/* ZJImagePickerManager.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9764A5B2492380D00463B78
/* ZJImagePickerManager.m */
;
};
A9764A5C2492380D00463B78
/* ZJImagePickerManager.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9764A5B2492380D00463B78
/* ZJImagePickerManager.m */
;
};
A9C2B61F24CEC0DC00010EAE
/* ZJCustomAnnotation.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9C2B61E24CEC0DC00010EAE
/* ZJCustomAnnotation.m */
;
};
A9C2B61F24CEC0DC00010EAE
/* ZJCustomAnnotation.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9C2B61E24CEC0DC00010EAE
/* ZJCustomAnnotation.m */
;
};
A9C2B62224CFF5F900010EAE
/* MAMapKit.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9C2B62124CFF5F900010EAE
/* MAMapKit.framework */
;
};
A9C2B62224CFF5F900010EAE
/* MAMapKit.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9C2B62124CFF5F900010EAE
/* MAMapKit.framework */
;
};
A9C2B63924D02ED600010EAE
/* ZJMapPinchGestureRecognizer.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9C2B63824D02ED600010EAE
/* ZJMapPinchGestureRecognizer.m */
;
};
A9F91E28249CCA4B006157BF
/* ZJUpgradeAlertView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9F91E27249CCA4B006157BF
/* ZJUpgradeAlertView.m */
;
};
A9F91E28249CCA4B006157BF
/* ZJUpgradeAlertView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9F91E27249CCA4B006157BF
/* ZJUpgradeAlertView.m */
;
};
A9F91E3E249DFC53006157BF
/* BaseWebViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9F91E3D249DFC53006157BF
/* BaseWebViewController.m */
;
};
A9F91E3E249DFC53006157BF
/* BaseWebViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
A9F91E3D249DFC53006157BF
/* BaseWebViewController.m */
;
};
D5167D5B2490C87400A79CB6
/* ZJSheZhiView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
D5167D592490C87400A79CB6
/* ZJSheZhiView.m */
;
};
D5167D5B2490C87400A79CB6
/* ZJSheZhiView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
D5167D592490C87400A79CB6
/* ZJSheZhiView.m */
;
};
...
@@ -470,6 +471,8 @@
...
@@ -470,6 +471,8 @@
A9C2B61D24CEC0DC00010EAE
/* ZJCustomAnnotation.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ZJCustomAnnotation.h
;
sourceTree
=
"<group>"
;
};
A9C2B61D24CEC0DC00010EAE
/* ZJCustomAnnotation.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ZJCustomAnnotation.h
;
sourceTree
=
"<group>"
;
};
A9C2B61E24CEC0DC00010EAE
/* ZJCustomAnnotation.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ZJCustomAnnotation.m
;
sourceTree
=
"<group>"
;
};
A9C2B61E24CEC0DC00010EAE
/* ZJCustomAnnotation.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ZJCustomAnnotation.m
;
sourceTree
=
"<group>"
;
};
A9C2B62124CFF5F900010EAE
/* MAMapKit.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
path
=
MAMapKit.framework
;
sourceTree
=
"<group>"
;
};
A9C2B62124CFF5F900010EAE
/* MAMapKit.framework */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
wrapper.framework
;
path
=
MAMapKit.framework
;
sourceTree
=
"<group>"
;
};
A9C2B63724D02ED600010EAE
/* ZJMapPinchGestureRecognizer.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ZJMapPinchGestureRecognizer.h
;
sourceTree
=
"<group>"
;
};
A9C2B63824D02ED600010EAE
/* ZJMapPinchGestureRecognizer.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ZJMapPinchGestureRecognizer.m
;
sourceTree
=
"<group>"
;
};
A9F91E26249CCA4B006157BF
/* ZJUpgradeAlertView.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ZJUpgradeAlertView.h
;
sourceTree
=
"<group>"
;
};
A9F91E26249CCA4B006157BF
/* ZJUpgradeAlertView.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
ZJUpgradeAlertView.h
;
sourceTree
=
"<group>"
;
};
A9F91E27249CCA4B006157BF
/* ZJUpgradeAlertView.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ZJUpgradeAlertView.m
;
sourceTree
=
"<group>"
;
};
A9F91E27249CCA4B006157BF
/* ZJUpgradeAlertView.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
ZJUpgradeAlertView.m
;
sourceTree
=
"<group>"
;
};
A9F91E3C249DFC53006157BF
/* BaseWebViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BaseWebViewController.h
;
sourceTree
=
"<group>"
;
};
A9F91E3C249DFC53006157BF
/* BaseWebViewController.h */
=
{
isa
=
PBXFileReference
;
fileEncoding
=
4
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
BaseWebViewController.h
;
sourceTree
=
"<group>"
;
};
...
@@ -1032,6 +1035,8 @@
...
@@ -1032,6 +1035,8 @@
64F52441248F34DB0032BCA2
/* ZJFriendTrackMapViewController.m */
,
64F52441248F34DB0032BCA2
/* ZJFriendTrackMapViewController.m */
,
A9C2B61D24CEC0DC00010EAE
/* ZJCustomAnnotation.h */
,
A9C2B61D24CEC0DC00010EAE
/* ZJCustomAnnotation.h */
,
A9C2B61E24CEC0DC00010EAE
/* ZJCustomAnnotation.m */
,
A9C2B61E24CEC0DC00010EAE
/* ZJCustomAnnotation.m */
,
A9C2B63724D02ED600010EAE
/* ZJMapPinchGestureRecognizer.h */
,
A9C2B63824D02ED600010EAE
/* ZJMapPinchGestureRecognizer.m */
,
);
);
path
=
Controller
;
path
=
Controller
;
sourceTree
=
"<group>"
;
sourceTree
=
"<group>"
;
...
@@ -1480,6 +1485,7 @@
...
@@ -1480,6 +1485,7 @@
A95F5C6E248DDE81001DB97E
/* UITableView+SDAutoTableViewCellHeight.m in Sources */
,
A95F5C6E248DDE81001DB97E
/* UITableView+SDAutoTableViewCellHeight.m in Sources */
,
D5271EC6248FBD9C00F8B107
/* Dequeuable.swift in Sources */
,
D5271EC6248FBD9C00F8B107
/* Dequeuable.swift in Sources */
,
A948C4A92493B31E00C22D69
/* ZJSelectEmergencyPersonCell.m in Sources */
,
A948C4A92493B31E00C22D69
/* ZJSelectEmergencyPersonCell.m in Sources */
,
A9C2B63924D02ED600010EAE
/* ZJMapPinchGestureRecognizer.m in Sources */
,
6453730F2497792500FD4C07
/* ZJLocationRemindSelectController.m in Sources */
,
6453730F2497792500FD4C07
/* ZJLocationRemindSelectController.m in Sources */
,
A95BD59224AC500A00962B06
/* ZYPinYinSearch.m in Sources */
,
A95BD59224AC500A00962B06
/* ZYPinYinSearch.m in Sources */
,
A95F5C5D248DDE81001DB97E
/* YCShadowView.m in Sources */
,
A95F5C5D248DDE81001DB97E
/* YCShadowView.m in Sources */
,
...
...
ZhiJi/Classes/LocationAttention/ZJLocationRemindSelectController.m
View file @
a09bd3ff
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
#import <MapKit/MapKit.h>
#import <MapKit/MapKit.h>
#import "ZJCustomAnnotation.h"
#import "ZJCustomAnnotation.h"
#import "ZJMapPinchGestureRecognizer.h"
@interface
ZJLocationRemindSelectController
()
<
MAMapViewDelegate
,
SJSliderDelegate
,
AMapSearchDelegate
,
MKMapViewDelegate
>
{
@interface
ZJLocationRemindSelectController
()
<
MAMapViewDelegate
,
SJSliderDelegate
,
AMapSearchDelegate
,
MKMapViewDelegate
>
{
BOOL
sliderDrag
;
BOOL
sliderDrag
;
...
@@ -130,6 +131,10 @@
...
@@ -130,6 +131,10 @@
self
.
addressMainTitleLabel
.
text
=
_editModel
.
address
;
self
.
addressMainTitleLabel
.
text
=
_editModel
.
address
;
self
.
addressSubTitleLabel
.
text
=
_editModel
.
addressName
;
self
.
addressSubTitleLabel
.
text
=
_editModel
.
addressName
;
CLLocationCoordinate2D
centerLocationCoordinate
=
[
self
.
mapView
convertPoint
:
self
.
mapView
.
center
toCoordinateFromView
:
self
.
mapView
];
[
self
.
mapView
setRegion
:
MKCoordinateRegionMakeWithDistance
(
centerLocationCoordinate
,
10000
,
10000
)
animated
:
false
];
[
self
.
mapView
addGestureRecognizer
:[[
ZJMapPinchGestureRecognizer
alloc
]
initWithMapView
:
self
.
mapView
]];
}
}
-
(
void
)
mapView
:
(
MKMapView
*
)
mapView
regionWillChangeAnimated
:
(
BOOL
)
animated
{
-
(
void
)
mapView
:
(
MKMapView
*
)
mapView
regionWillChangeAnimated
:
(
BOOL
)
animated
{
...
@@ -148,9 +153,17 @@
...
@@ -148,9 +153,17 @@
self
.
circle
=
[
MKCircle
circleWithCenterCoordinate
:
self
.
mapView
.
centerCoordinate
radius
:
500
];
self
.
circle
=
[
MKCircle
circleWithCenterCoordinate
:
self
.
mapView
.
centerCoordinate
radius
:
500
];
[
self
.
mapView
addOverlay
:
self
.
circle
];
[
self
.
mapView
addOverlay
:
self
.
circle
];
//
// CLLocationCoordinate2D center = mapView.region.center;
// //设置跨度为当前地图范围的跨度 * 比例系数
// MKCoordinateSpan span = MKCoordinateSpanMake(mapView.region.span.latitudeDelta * 2, mapView.region.span.longitudeDelta * 2);
// [mapView setRegion:MKCoordinateRegionMake(center, span) animated:NO];
self
.
location
=
[[
CLLocation
alloc
]
initWithLatitude
:
mapView
.
centerCoordinate
.
latitude
longitude
:
mapView
.
centerCoordinate
.
longitude
];
self
.
location
=
[[
CLLocation
alloc
]
initWithLatitude
:
mapView
.
centerCoordinate
.
latitude
longitude
:
mapView
.
centerCoordinate
.
longitude
];
[
self
centerLocation
:
self
.
location
];
[
self
centerLocation
:
self
.
location
];
}
}
-
(
void
)
centerLocation
:
(
CLLocation
*
)
location
{
-
(
void
)
centerLocation
:
(
CLLocation
*
)
location
{
...
...
ZhiJi/Classes/Map/Controller/ZJMapPinchGestureRecognizer.h
0 → 100644
View file @
a09bd3ff
//
// ZJMapPinchGestureRecognizer.h
// ZhiJi
//
// Created by 明津李 on 2020/7/28.
// Copyright © 2020 Company. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface
ZJMapPinchGestureRecognizer
:
UIPinchGestureRecognizer
-
(
id
)
initWithMapView
:(
MKMapView
*
)
mapView
;
@end
NS_ASSUME_NONNULL_END
ZhiJi/Classes/Map/Controller/ZJMapPinchGestureRecognizer.m
0 → 100644
View file @
a09bd3ff
//
// ZJMapPinchGestureRecognizer.m
// ZhiJi
//
// Created by 明津李 on 2020/7/28.
// Copyright © 2020 Company. All rights reserved.
//
#import "ZJMapPinchGestureRecognizer.h"
@interface
ZJMapPinchGestureRecognizer
()
-
(
void
)
handlePinchGesture
;
@property
(
nonatomic
,
assign
)
MKMapView
*
mapView
;
@end
@implementation
ZJMapPinchGestureRecognizer
-
(
id
)
initWithMapView
:(
MKMapView
*
)
mapView
{
if
(
mapView
==
nil
)
{
[
NSException
raise
:
NSInvalidArgumentException
format
:
@"mapView cannot be nil."
];
}
if
((
self
=
[
super
initWithTarget
:
self
action
:
@selector
(
handlePinchGesture
)]))
{
self
.
mapView
=
mapView
;
}
return
self
;
}
-
(
BOOL
)
canBePreventedByGestureRecognizer
:(
UIGestureRecognizer
*
)
gestureRecognizer
{
return
NO
;
}
-
(
BOOL
)
canPreventGestureRecognizer
:(
UIGestureRecognizer
*
)
gestureRecognizer
{
return
NO
;
}
-
(
void
)
handlePinchGesture
{
CLLocation
*
location
=
self
.
mapView
.
userLocation
.
location
;
if
(
location
!=
nil
)
{
[
self
.
mapView
setCenterCoordinate
:
location
.
coordinate
];
}
}
@end
ZhiJi/Classes/Tools/Network/TQNetworkTools.m
View file @
a09bd3ff
...
@@ -213,8 +213,8 @@ static TQNetworkTools* _tools = nil;
...
@@ -213,8 +213,8 @@ static TQNetworkTools* _tools = nil;
// [dict setValue: @"1" forKey: @"tgtk"];
// [dict setValue: @"1" forKey: @"tgtk"];
// 获取BundleID
// 获取BundleID
//
[dict setValue: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey: @"pkg"];
[
dict
setValue
:
[[[
NSBundle
mainBundle
]
infoDictionary
]
objectForKey
:
@"CFBundleIdentifier"
]
forKey
:
@"pkg"
];
[
dict
setValue
:
@"com.app.zhiji"
forKey
:
@"pkg"
];
//cs
//
[dict setValue: @"com.app.zhiji" forKey: @"pkg"]; //cs
NSString
*
identifierForVendor
=
[[
data
Read
]
objectForKey
:
@"Identifier"
];;
NSString
*
identifierForVendor
=
[[
data
Read
]
objectForKey
:
@"Identifier"
];;
[
dict
setValue
:
identifierForVendor
forKey
:
@"device"
];
[
dict
setValue
:
identifierForVendor
forKey
:
@"device"
];
...
@@ -230,8 +230,8 @@ static TQNetworkTools* _tools = nil;
...
@@ -230,8 +230,8 @@ static TQNetworkTools* _tools = nil;
// }
// }
//appLs
//appLs
//
[dict setValue: @"040087e60c36fd63" forKey: @"appLs"];
[
dict
setValue
:
@"040087e60c36fd63"
forKey
:
@"appLs"
];
[
dict
setValue
:
@"d904ceaa1b3f6444"
forKey
:
@"appLs"
];
//cs
//
[dict setValue: @"d904ceaa1b3f6444" forKey: @"appLs"]; //cs
// 设置网络类型
// 设置网络类型
[[
AFNetworkReachabilityManager
sharedManager
]
setReachabilityStatusChangeBlock
:
^
(
AFNetworkReachabilityStatus
status
)
{
[[
AFNetworkReachabilityManager
sharedManager
]
setReachabilityStatusChangeBlock
:
^
(
AFNetworkReachabilityStatus
status
)
{
...
@@ -556,8 +556,8 @@ static TQNetworkTools* _tools = nil;
...
@@ -556,8 +556,8 @@ static TQNetworkTools* _tools = nil;
[
dict
setValue
:
identifierForVendor
forKey
:
@"device"
];
[
dict
setValue
:
identifierForVendor
forKey
:
@"device"
];
NSLog
(
@"identifierForVendor info == %@"
,
identifierForVendor
);
NSLog
(
@"identifierForVendor info == %@"
,
identifierForVendor
);
// 获取BundleID
// 获取BundleID
//
[dict setValue: [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"] forKey: @"pkg"];
[
dict
setValue
:
[[[
NSBundle
mainBundle
]
infoDictionary
]
objectForKey
:
@"CFBundleIdentifier"
]
forKey
:
@"pkg"
];
[
dict
setValue
:
@"com.app.zhiji"
forKey
:
@"pkg"
];
//
[dict setValue: @"com.app.zhiji" forKey: @"pkg"];
// 设置时间戳
// 设置时间戳
NSTimeInterval
today
=
[[
NSDate
date
]
timeIntervalSince1970
]
*
1000
;
NSTimeInterval
today
=
[[
NSDate
date
]
timeIntervalSince1970
]
*
1000
;
...
@@ -569,8 +569,8 @@ static TQNetworkTools* _tools = nil;
...
@@ -569,8 +569,8 @@ static TQNetworkTools* _tools = nil;
// }
// }
//appLs
//appLs
//
[dict setValue: @"040087e60c36fd63" forKey: @"appLs"];
[
dict
setValue
:
@"040087e60c36fd63"
forKey
:
@"appLs"
];
[
dict
setValue
:
@"d904ceaa1b3f6444"
forKey
:
@"appLs"
];
//
[dict setValue: @"d904ceaa1b3f6444" forKey: @"appLs"];
[
dict
addEntriesFromDictionary
:[
self
signParams
:
dict
]];
[
dict
addEntriesFromDictionary
:[
self
signParams
:
dict
]];
...
...
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