Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
09f07cfe
Commit
09f07cfe
authored
Jun 10, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复地址分行显示
parent
1600d410
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
16 deletions
+18
-16
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
...nessPlatform/ViewController/地址管理/DZGLViewController.swift
+9
-6
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
+6
-4
GeliBusinessPlatform/ViewController/消息中心/MsgCenterViewController.swift
...latform/ViewController/消息中心/MsgCenterViewController.swift
+3
-6
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
09f07cfe
No preview for this file type
GeliBusinessPlatform/ViewController/地址管理/DZGLViewController.swift
View file @
09f07cfe
...
...
@@ -109,8 +109,8 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
if
cus_id
!=
nil
{
HUD
.
flash
(
.
progress
)
searchBgH
.
constant
=
0
getAddrsInfo
([
"user_token"
:
UserToken
,
"cus_id"
:
cus_id
],
success
:
{
(
data
)
in
self
.
adrInfo
=
data
as!
GetAddrsInfoModel
getAddrsInfo
([
"user_token"
:
UserToken
as
Any
,
"cus_id"
:
cus_id
as
Any
],
success
:
{
(
data
)
in
self
.
adrInfo
=
(
data
as!
GetAddrsInfoModel
)
self
.
listView
.
reloadData
()
HUD
.
hide
()
})
{
(
error
)
in
...
...
@@ -152,7 +152,8 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
btmLblHeight
.
constant
=
0
}
listView
.
estimatedRowHeight
=
49
listView
.
rowHeight
=
UITableView
.
automaticDimension
// Do any additional setup after loading the view.
}
...
...
@@ -187,9 +188,7 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
}
return
adrArrs
.
count
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
79
}
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"DiZhiGuanLiCell"
)
as!
DiZhiGuanLiCell
cell
.
delegate
=
self
...
...
@@ -295,6 +294,10 @@ class DZGLViewController: BaseViewController,UITableViewDelegate,UITableViewData
options
.
expansionStyle
=
.
selection
//展开样式(默认为.none)
return
options
}
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
tableView
.
rowHeight
}
func
tableView
(
_
tableView
:
UITableView
,
editActionsForRowAt
indexPath
:
IndexPath
,
for
orientation
:
SwipeActionsOrientation
)
->
[
SwipeAction
]?
{
let
tag
=
indexPath
.
row
...
...
GeliBusinessPlatform/ViewController/地址管理/DiZhiGuanLiCell.xib
View file @
09f07cfe
...
...
@@ -73,8 +73,8 @@
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"广东省广州市番禺区市桥南路电脑城"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SOh-hJ-gKS"
>
<rect
key=
"frame"
x=
"50"
y=
"
52"
width=
"212.5"
height=
"16
"
/>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"广东省广州市番禺区市桥南路电脑城"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"SOh-hJ-gKS"
>
<rect
key=
"frame"
x=
"50"
y=
"
48.5"
width=
"290"
height=
"20.5
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"13"
/>
<color
key=
"textColor"
name=
"灰色字体颜色"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -112,18 +112,20 @@
<constraint
firstItem=
"vAQ-5q-KPr"
firstAttribute=
"leading"
secondItem=
"oeS-KW-qjD"
secondAttribute=
"trailing"
constant=
"15"
id=
"4ok-AC-XWT"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"raS-k5-oNa"
secondAttribute=
"trailing"
id=
"5WN-Ud-Jc7"
/>
<constraint
firstItem=
"oeS-KW-qjD"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"79g-ox-Ohm"
/>
<constraint
firstItem=
"raS-k5-oNa"
firstAttribute=
"top"
secondItem=
"SOh-hJ-gKS"
secondAttribute=
"bottom"
constant=
"9"
id=
"7WS-7Y-X8x"
/>
<constraint
firstItem=
"0Zd-v3-Vtu"
firstAttribute=
"centerY"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"centerY"
id=
"94d-JF-XNY"
/>
<constraint
firstItem=
"raS-k5-oNa"
firstAttribute=
"leading"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"leading"
constant=
"15"
id=
"Bl7-ud-MH8"
/>
<constraint
firstItem=
"vAQ-5q-KPr"
firstAttribute=
"top"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"top"
constant=
"15"
id=
"GB4-TQ-IJc"
/>
<constraint
firstItem=
"7eJ-B4-h9O"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"H4Y-Hp-W29"
/>
<constraint
firstItem=
"SOh-hJ-gKS"
firstAttribute=
"top"
secondItem=
"jf6-0X-5eB"
secondAttribute=
"bottom"
constant=
"15"
id=
"Lxh-Z0-Emg"
/>
<constraint
firstItem=
"jf6-0X-5eB"
firstAttribute=
"centerY"
secondItem=
"0Zd-v3-Vtu"
secondAttribute=
"centerY"
id=
"Mbj-p2-VdQ"
/>
<constraint
firstItem=
"raS-k5-oNa"
firstAttribute=
"top"
secondItem=
"SOh-hJ-gKS"
secondAttribute=
"bottom"
constant=
"10"
id=
"Q1e-gA-4qh"
/>
<constraint
firstItem=
"mWp-V0-KaZ"
firstAttribute=
"leading"
secondItem=
"jf6-0X-5eB"
secondAttribute=
"trailing"
constant=
"10"
id=
"Q58-SO-drh"
/>
<constraint
firstItem=
"oeS-KW-qjD"
firstAttribute=
"centerY"
secondItem=
"H2p-sc-9uM"
secondAttribute=
"centerY"
id=
"cia-6b-Gc1"
/>
<constraint
firstItem=
"
SOh-hJ-gKS"
firstAttribute=
"leading"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"leading"
id=
"is0-NC-Im1
"
/>
<constraint
firstItem=
"
7eJ-B4-h9O"
firstAttribute=
"leading"
secondItem=
"SOh-hJ-gKS"
secondAttribute=
"trailing"
constant=
"15"
id=
"iaQ-5H-nCe
"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"raS-k5-oNa"
secondAttribute=
"bottom"
id=
"ow3-Vt-3kW"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"7eJ-B4-h9O"
secondAttribute=
"trailing"
constant=
"15"
id=
"rrB-jM-gXG"
/>
<constraint
firstItem=
"mWp-V0-KaZ"
firstAttribute=
"centerY"
secondItem=
"jf6-0X-5eB"
secondAttribute=
"centerY"
id=
"sXS-NF-LT4"
/>
<constraint
firstItem=
"SOh-hJ-gKS"
firstAttribute=
"leading"
secondItem=
"vAQ-5q-KPr"
secondAttribute=
"leading"
id=
"vqA-bs-BfP"
/>
<constraint
firstItem=
"jf6-0X-5eB"
firstAttribute=
"leading"
secondItem=
"0Zd-v3-Vtu"
secondAttribute=
"trailing"
constant=
"10"
id=
"wng-fe-Xxb"
/>
</constraints>
</tableViewCellContentView>
...
...
GeliBusinessPlatform/ViewController/消息中心/MsgCenterViewController.swift
View file @
09f07cfe
...
...
@@ -104,13 +104,10 @@ class MsgCenterViewController: BaseViewController,UITableViewDelegate,UITableVie
//MARK: -Cell delegate方法
// func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
// return 120
// }
func
tableView
(
_
tableView
:
UITableView
,
estimatedHeightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
print
(
tableView
.
estimatedRowHeight
)
return
250
func
tableView
(
_
tableView
:
UITableView
,
heightForRowAt
indexPath
:
IndexPath
)
->
CGFloat
{
return
tableView
.
rowHeight
}
func
tableView
(
_
tableView
:
UITableView
,
numberOfRowsInSection
section
:
Int
)
->
Int
{
return
self
.
dataModelArr
.
count
}
...
...
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