Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Palmwms
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Palmwms
Commits
dc9b38f6
Commit
dc9b38f6
authored
Sep 27, 2017
by
曹云霄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配iOS11 和iPhone X
parent
4840bc1f
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
467 additions
and
225 deletions
+467
-225
Contents.json
Palmwms/Assets.xcassets/AppIcon.appiconset/Contents.json
+5
-0
LaunchScreen.storyboard
Palmwms/Base.lproj/LaunchScreen.storyboard
+23
-6
DeliveryTrackingViewController.mm
...ss/Main/Map/Contrillers/DeliveryTrackingViewController.mm
+4
-1
MainViewController.m
Palmwms/Class/Main/Map/Contrillers/MainViewController.m
+2
-2
OrderDetailsViewController.m
...s/Class/Main/Map/Contrillers/OrderDetailsViewController.m
+3
-6
PalmwmsMain.storyboard
Palmwms/PalmwmsMain.storyboard
+430
-210
No files found.
Palmwms/Assets.xcassets/AppIcon.appiconset/Contents.json
View file @
dc9b38f6
...
@@ -63,6 +63,11 @@
...
@@ -63,6 +63,11 @@
"idiom"
:
"iphone"
,
"idiom"
:
"iphone"
,
"filename"
:
"Icon-60@3x.png"
,
"filename"
:
"Icon-60@3x.png"
,
"scale"
:
"3x"
"scale"
:
"3x"
},
{
"idiom"
:
"ios-marketing"
,
"size"
:
"1024x1024"
,
"scale"
:
"1x"
}
}
],
],
"info"
:
{
"info"
:
{
...
...
Palmwms/Base.lproj/LaunchScreen.storyboard
View file @
dc9b38f6
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"9531"
systemVersion=
"15G31"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
initialViewController=
"01J-lp-oVM"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB"
version=
"3.0"
toolsVersion=
"13196"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
launchScreen=
"YES"
useTraitCollections=
"YES"
colorMatched=
"YES"
initialViewController=
"01J-lp-oVM"
>
<device
id=
"retina5_9"
orientation=
"portrait"
>
<adaptation
id=
"fullscreen"
/>
</device>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"9529"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"13173"
/>
<capability
name=
"Constraints with non-1.0 multipliers"
minToolsVersion=
"5.1"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<scenes>
<scenes>
<!--View Controller-->
<!--View Controller-->
...
@@ -14,14 +19,26 @@
...
@@ -14,14 +19,26 @@
<viewControllerLayoutGuide
type=
"bottom"
id=
"xb3-aO-Qok"
/>
<viewControllerLayoutGuide
type=
"bottom"
id=
"xb3-aO-Qok"
/>
</layoutGuides>
</layoutGuides>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<view
key=
"view"
contentMode=
"scaleToFill"
id=
"Ze5-6b-2t3"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
600"
height=
"600
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"
375"
height=
"812
"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<autoresizingMask
key=
"autoresizingMask"
widthSizable=
"YES"
heightSizable=
"YES"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"calibratedWhite"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"logo"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"zzk-Vr-eKK"
>
<rect
key=
"frame"
x=
"130.66666666666666"
y=
"172"
width=
"114"
height=
"62"
/>
</imageView>
</subviews>
<color
key=
"backgroundColor"
red=
"0.9137254901960784"
green=
"0.94117647058823528"
blue=
"0.96862745098039216"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"sRGB"
/>
<constraints>
<constraint
firstItem=
"zzk-Vr-eKK"
firstAttribute=
"centerX"
secondItem=
"Ze5-6b-2t3"
secondAttribute=
"centerX"
id=
"Q9z-Rx-gb3"
/>
<constraint
firstItem=
"zzk-Vr-eKK"
firstAttribute=
"centerY"
secondItem=
"Ze5-6b-2t3"
secondAttribute=
"centerY"
multiplier=
"0.5"
id=
"owF-hv-boW"
/>
</constraints>
</view>
</view>
</viewController>
</viewController>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
<placeholder
placeholderIdentifier=
"IBFirstResponder"
id=
"iYj-Kq-Ea1"
userLabel=
"First Responder"
sceneMemberID=
"firstResponder"
/>
</objects>
</objects>
<point
key=
"canvasLocation"
x=
"5
3"
y=
"375
"
/>
<point
key=
"canvasLocation"
x=
"5
2"
y=
"374.6305418719212
"
/>
</scene>
</scene>
</scenes>
</scenes>
<resources>
<image
name=
"logo"
width=
"114"
height=
"62"
/>
</resources>
</document>
</document>
Palmwms/Class/Main/Map/Contrillers/DeliveryTrackingViewController.mm
View file @
dc9b38f6
...
@@ -156,8 +156,11 @@
...
@@ -156,8 +156,11 @@
_routesearch = [[BMKRouteSearch alloc]init];
_routesearch = [[BMKRouteSearch alloc]init];
self.locService = [[BMKLocationService alloc]init];
self.locService = [[BMKLocationService alloc]init];
[self.locService startUserLocationService];
[self.locService startUserLocationService];
self.mapView = [[BMKMapView alloc]init
WithFrame:CGRectMake(0, 0, self.view.mj_w, self.view.mj_h-44-64)
];
self.mapView = [[BMKMapView alloc]init];
[self.view insertSubview:_mapView atIndex:0];
[self.view insertSubview:_mapView atIndex:0];
[self.mapView mas_makeConstraints:^(MASConstraintMaker *make) {
make.left.right.top.bottom.equalTo(self.view);
}];
self.mapView.zoomLevel = 16;
self.mapView.zoomLevel = 16;
self.locService.pausesLocationUpdatesAutomatically = NO;
self.locService.pausesLocationUpdatesAutomatically = NO;
self.mapView.userTrackingMode = BMKUserTrackingModeFollow;
self.mapView.userTrackingMode = BMKUserTrackingModeFollow;
...
...
Palmwms/Class/Main/Map/Contrillers/MainViewController.m
View file @
dc9b38f6
...
@@ -47,22 +47,22 @@
...
@@ -47,22 +47,22 @@
_DeliveryVC
=
[
self
.
getStoryboardWithName
instantiateViewControllerWithIdentifier
:
@"DeliveryTrackingViewController"
];
_DeliveryVC
=
[
self
.
getStoryboardWithName
instantiateViewControllerWithIdentifier
:
@"DeliveryTrackingViewController"
];
[
self
addChildViewController
:
_DeliveryVC
];
[
self
addChildViewController
:
_DeliveryVC
];
[
self
.
view
addSubview
:
_coordinateVC
.
view
];
[
self
.
view
addSubview
:
_coordinateVC
.
view
];
_coordinateVC
.
view
.
frame
=
self
.
view
.
bounds
;
self
.
currentVC
=
self
.
coordinateVC
;
self
.
currentVC
=
self
.
coordinateVC
;
}
}
#pragma mark - 切换内容控制器
#pragma mark - 切换内容控制器
-
(
void
)
changeViewControllerWithNewController
:
(
BaseViewController
*
)
newController
-
(
void
)
changeViewControllerWithNewController
:
(
BaseViewController
*
)
newController
{
{
[
self
transitionFromViewController
:
self
.
currentVC
toViewController
:
newController
duration
:
0
.
3
options
:
UIViewAnimationOptionTransitionNone
animations
:
nil
completion
:^
(
BOOL
finished
)
{
[
self
transitionFromViewController
:
self
.
currentVC
toViewController
:
newController
duration
:
0
.
3
options
:
UIViewAnimationOptionTransitionNone
animations
:
nil
completion
:^
(
BOOL
finished
)
{
if
(
finished
)
{
if
(
finished
)
{
[
self
.
view
addSubview
:
newController
.
view
];
[
self
.
view
addSubview
:
newController
.
view
];
newController
.
view
.
frame
=
self
.
view
.
bounds
;
self
.
currentVC
=
newController
;
self
.
currentVC
=
newController
;
}
}
}];
}];
}
}
-
(
IBAction
)
UISegmentedControlClickAction
:
(
UISegmentedControl
*
)
sender
{
-
(
IBAction
)
UISegmentedControlClickAction
:
(
UISegmentedControl
*
)
sender
{
if
(
sender
.
selectedSegmentIndex
)
{
if
(
sender
.
selectedSegmentIndex
)
{
...
...
Palmwms/Class/Main/Map/Contrillers/OrderDetailsViewController.m
View file @
dc9b38f6
...
@@ -25,7 +25,6 @@
...
@@ -25,7 +25,6 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
orderDetailsTableview
.
tableFooterView
=
[
UIView
new
];
[
self
uiConfigAction
];
[
self
uiConfigAction
];
}
}
...
@@ -45,6 +44,9 @@
...
@@ -45,6 +44,9 @@
[
attributedString
addAttribute
:
NSForegroundColorAttributeName
value
:[
UIColor
blackColor
]
range
:
NSMakeRange
(
attributedString
.
length
-
([
indexString
length
]
+
4
+
[
totalCount
length
]),
[
totalCount
length
])];
[
attributedString
addAttribute
:
NSForegroundColorAttributeName
value
:[
UIColor
blackColor
]
range
:
NSMakeRange
(
attributedString
.
length
-
([
indexString
length
]
+
4
+
[
totalCount
length
]),
[
totalCount
length
])];
[
attributedString
addAttribute
:
NSForegroundColorAttributeName
value
:[
UIColor
greenColor
]
range
:
NSMakeRange
(
attributedString
.
length
-
[
indexString
length
],
[
indexString
length
])];
[
attributedString
addAttribute
:
NSForegroundColorAttributeName
value
:[
UIColor
greenColor
]
range
:
NSMakeRange
(
attributedString
.
length
-
[
indexString
length
],
[
indexString
length
])];
self
.
titleLabel
.
attributedText
=
attributedString
;
self
.
titleLabel
.
attributedText
=
attributedString
;
self
.
orderDetailsTableview
.
tableFooterView
=
[
UIView
new
];
self
.
orderDetailsTableview
.
rowHeight
=
UITableViewAutomaticDimension
;
self
.
orderDetailsTableview
.
estimatedRowHeight
=
60
;
}
}
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
UITableViewCell
*
)
tableView
:
(
UITableView
*
)
tableView
cellForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
...
@@ -80,11 +82,6 @@
...
@@ -80,11 +82,6 @@
return
self
.
orderDetails
.
count
;
return
self
.
orderDetails
.
count
;
}
}
-
(
CGFloat
)
tableView
:
(
UITableView
*
)
tableView
heightForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
return
60
;
}
-
(
UITableViewCellEditingStyle
)
tableView
:
(
UITableView
*
)
tableView
editingStyleForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
-
(
UITableViewCellEditingStyle
)
tableView
:
(
UITableView
*
)
tableView
editingStyleForRowAtIndexPath
:
(
NSIndexPath
*
)
indexPath
{
{
return
UITableViewCellEditingStyleDelete
;
return
UITableViewCellEditingStyleDelete
;
...
...
Palmwms/PalmwmsMain.storyboard
View file @
dc9b38f6
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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