Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
P
PhoneManager
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
Yang
PhoneManager
Commits
3c92cedf
Commit
3c92cedf
authored
May 23, 2025
by
yqz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
76a77d75
Hide whitespace changes
Inline
Side-by-side
Showing
25 changed files
with
85 additions
and
64 deletions
+85
-64
AppDelegate.swift
PhoneManager/AppDelegate.swift
+0
-1
CompressController.swift
...r/Class/Page/Compress/Controller/CompressController.swift
+1
-1
CompressCustomHeaderView.swift
...r/Class/Page/Compress/View/CompressCustomHeaderView.swift
+2
-1
ContactAllView.swift
...eManager/Class/Page/Contact/View/All/ContactAllView.swift
+1
-1
DeleteButtonView.swift
...ger/Class/Page/Contact/View/Common/DeleteButtonView.swift
+6
-6
VideoViewController.swift
...eManager/Class/Page/Home/Common/VideoViewController.swift
+5
-1
HomePhotosDetailViewController.swift
...Page/Home/Controller/HomePhotosDetailViewController.swift
+5
-5
HomeVideoDetailController.swift
...lass/Page/Home/Controller/HomeVideoDetailController.swift
+5
-5
PhotoRemoveViewController.swift
...lass/Page/Home/Controller/PhotoRemoveViewController.swift
+3
-2
HomeInfoView.swift
PhoneManager/Class/Page/Home/View/HomeInfoView.swift
+3
-2
HomePhotosDetailCustomHeaderView.swift
...ass/Page/Home/View/HomePhotosDetailCustomHeaderView.swift
+3
-2
HomeTabbarView.swift
PhoneManager/Class/Page/Home/View/HomeTabbarView.swift
+1
-1
HomeVideoDetailCustomHeaderView.swift
...lass/Page/Home/View/HomeVideoDetailCustomHeaderView.swift
+3
-2
HomeView.swift
PhoneManager/Class/Page/Home/View/HomeView.swift
+8
-1
PhotosRemoveBaseView.swift
PhoneManager/Class/Page/Home/View/PhotosRemoveBaseView.swift
+0
-1
ResourceFilterBoxView.swift
...eManager/Class/Page/Home/View/ResourceFilterBoxView.swift
+2
-2
VideoDetaiNavView.swift
PhoneManager/Class/Page/Home/View/VideoDetaiNavView.swift
+2
-2
HomeTitleCollectionCell.swift
...r/Class/Page/Home/View/cell/HomeTitleCollectionCell.swift
+1
-1
MaintaiBottomView.swift
PhoneManager/Class/Page/Keep/View/MaintaiBottomView.swift
+5
-0
MaintaiBottomView.xib
PhoneManager/Class/Page/Keep/View/MaintaiBottomView.xib
+3
-9
PMShowImgVideoController.swift
...eManager/Class/Page/Secret/PMShowImgVideoController.swift
+12
-3
SecretBottomView.swift
PhoneManager/Class/Page/Secret/View/SecretBottomView.swift
+2
-1
WidgetViewController.swift
PhoneManager/Class/Page/Widget/WidgetViewController.swift
+1
-0
EmailCleanListController.swift
...s/Session/Email/Controller/EmailCleanListController.swift
+7
-11
PMEmailManager.swift
PhoneManager/Class/Tool/Email/PMEmailManager.swift
+4
-3
No files found.
PhoneManager/AppDelegate.swift
View file @
3c92cedf
...
@@ -39,7 +39,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
...
@@ -39,7 +39,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
let
storage
=
WidgetPublicModel
.
UseDiskSpace
()
*
100
let
storage
=
WidgetPublicModel
.
UseDiskSpace
()
*
100
widgetAppgourp
.
share
.
PushWidgetData
(
battery
:
Int
(
battery
),
storage
:
Int
(
storage
))
widgetAppgourp
.
share
.
PushWidgetData
(
battery
:
Int
(
battery
),
storage
:
Int
(
storage
))
//初始化adjust
//初始化adjust
let
yourAppToken
=
"6mouvwgw7ksg"
let
yourAppToken
=
"6mouvwgw7ksg"
...
...
PhoneManager/Class/Page/Compress/Controller/CompressController.swift
View file @
3c92cedf
...
@@ -21,7 +21,7 @@ class CompressController : BaseViewController {
...
@@ -21,7 +21,7 @@ class CompressController : BaseViewController {
private
var
compressNav
:
CompressNavView
?
private
var
compressNav
:
CompressNavView
?
// 排序
// 排序
var
currentSort
:
ResouceSortType
=
.
la
rgest
var
currentSort
:
ResouceSortType
=
.
la
test
// 资源类型 - 相册或者视频
// 资源类型 - 相册或者视频
var
currentResourceType
:
CompressType
=
.
compressPhoto
var
currentResourceType
:
CompressType
=
.
compressPhoto
...
...
PhoneManager/Class/Page/Compress/View/CompressCustomHeaderView.swift
View file @
3c92cedf
...
@@ -45,7 +45,8 @@ class CompressCustomHeaderView: UICollectionReusableView{
...
@@ -45,7 +45,8 @@ class CompressCustomHeaderView: UICollectionReusableView{
button
.
layer
.
cornerRadius
=
14
button
.
layer
.
cornerRadius
=
14
button
.
clipsToBounds
=
true
button
.
clipsToBounds
=
true
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
12
,
weight
:
.
semibold
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
,
weight
:
.
semibold
)
button
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
isHidden
=
false
button
.
isHidden
=
false
...
...
PhoneManager/Class/Page/Contact/View/All/ContactAllView.swift
View file @
3c92cedf
...
@@ -78,7 +78,7 @@ class ContactAllView : UIView {
...
@@ -78,7 +78,7 @@ class ContactAllView : UIView {
self
.
addSubview
(
self
.
subTitleLabel
)
self
.
addSubview
(
self
.
subTitleLabel
)
self
.
addSubview
(
self
.
tableView
)
self
.
addSubview
(
self
.
tableView
)
self
.
addSubview
(
self
.
deleteButton
)
self
.
addSubview
(
self
.
deleteButton
)
self
.
backgroundColor
=
.
clear
self
.
titleLabel
.
snp
.
makeConstraints
{
make
in
self
.
titleLabel
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
15
*
RScreenW
())
make
.
left
.
equalToSuperview
()
.
offset
(
15
*
RScreenW
())
make
.
top
.
equalToSuperview
()
.
offset
(
14
*
RScreenH
())
make
.
top
.
equalToSuperview
()
.
offset
(
14
*
RScreenH
())
...
...
PhoneManager/Class/Page/Contact/View/Common/DeleteButtonView.swift
View file @
3c92cedf
...
@@ -17,8 +17,8 @@ class DeleteButtonView : UIView {
...
@@ -17,8 +17,8 @@ class DeleteButtonView : UIView {
view
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
1
)
view
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
1
)
view
.
setTitleColor
(
.
white
,
for
:
.
normal
)
view
.
setTitleColor
(
.
white
,
for
:
.
normal
)
view
.
clipsToBounds
=
true
view
.
clipsToBounds
=
true
view
.
layer
.
cornerRadius
=
23
view
.
layer
.
cornerRadius
=
12
view
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
.
bold
)
view
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
.
semi
bold
)
view
.
setTitle
(
"See Merge Preview"
,
for
:
.
normal
)
view
.
setTitle
(
"See Merge Preview"
,
for
:
.
normal
)
view
.
setImage
(
UIImage
(
named
:
"ic_hebing"
),
for
:
.
normal
)
view
.
setImage
(
UIImage
(
named
:
"ic_hebing"
),
for
:
.
normal
)
...
@@ -38,13 +38,13 @@ class DeleteButtonView : UIView {
...
@@ -38,13 +38,13 @@ class DeleteButtonView : UIView {
override
init
(
frame
:
CGRect
)
{
override
init
(
frame
:
CGRect
)
{
super
.
init
(
frame
:
frame
)
super
.
init
(
frame
:
frame
)
self
.
backgroundColor
=
.
white
self
.
backgroundColor
=
.
clear
self
.
addSubview
(
self
.
deleteButton
)
self
.
addSubview
(
self
.
deleteButton
)
self
.
deleteButton
.
snp
.
makeConstraints
{
make
in
self
.
deleteButton
.
snp
.
makeConstraints
{
make
in
make
.
left
.
equalToSuperview
()
.
offset
(
1
5
)
make
.
left
.
equalToSuperview
()
.
offset
(
5
5
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
1
5
)
make
.
right
.
equalToSuperview
()
.
offset
(
-
5
5
)
make
.
height
.
equalTo
(
4
6
)
make
.
height
.
equalTo
(
4
5
)
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
make
.
top
.
equalToSuperview
()
.
offset
(
16
)
}
}
}
}
...
...
PhoneManager/Class/Page/Home/Common/VideoViewController.swift
View file @
3c92cedf
...
@@ -29,14 +29,17 @@ class VideoViewController: UIViewController {
...
@@ -29,14 +29,17 @@ class VideoViewController: UIViewController {
// 1. 创建播放器
// 1. 创建播放器
if
let
url
=
self
.
url
{
if
let
url
=
self
.
url
{
self
.
player
=
AVPlayer
(
url
:
url
)
self
.
player
=
AVPlayer
(
url
:
url
)
self
.
player
?
.
isMuted
=
true
self
.
player
?
.
volume
=
0
self
.
player
?
.
volume
=
0
self
.
player
?
.
isMuted
=
true
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.1
)
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.1
)
{
// 2. 配置播放器控制器
// 2. 配置播放器控制器
self
.
playerViewController
.
player
=
self
.
player
self
.
playerViewController
.
player
=
self
.
player
self
.
playerViewController
.
delegate
=
self
self
.
playerViewController
.
delegate
=
self
self
.
playerViewController
.
showsPlaybackControls
=
true
self
.
playerViewController
.
showsPlaybackControls
=
true
self
.
playerViewController
.
player
?
.
volume
=
0
self
.
playerViewController
.
player
?
.
isMuted
=
true
self
.
playerViewController
.
player
?
.
isMuted
=
true
// 3. 添加到当前视图
// 3. 添加到当前视图
self
.
addChild
(
self
.
playerViewController
)
self
.
addChild
(
self
.
playerViewController
)
self
.
view
.
addSubview
(
self
.
playerViewController
.
view
)
self
.
view
.
addSubview
(
self
.
playerViewController
.
view
)
...
@@ -45,6 +48,7 @@ class VideoViewController: UIViewController {
...
@@ -45,6 +48,7 @@ class VideoViewController: UIViewController {
// 4. 自动播放
// 4. 自动播放
if
self
.
isAutoPlay
{
if
self
.
isAutoPlay
{
self
.
player
?
.
play
()
self
.
player
?
.
play
()
self
.
playerViewController
.
player
?
.
volume
=
0
self
.
player
?
.
isMuted
=
true
self
.
player
?
.
isMuted
=
true
}
}
}
}
...
...
PhoneManager/Class/Page/Home/Controller/HomePhotosDetailViewController.swift
View file @
3c92cedf
...
@@ -37,7 +37,7 @@ class HomePhotosDetailViewController : BaseViewController {
...
@@ -37,7 +37,7 @@ class HomePhotosDetailViewController : BaseViewController {
var
resourceData
:
[
AssetModel
]
=
[]
var
resourceData
:
[
AssetModel
]
=
[]
// 排序
// 排序
var
currentSort
:
ResouceSortType
=
.
la
rg
est
var
currentSort
:
ResouceSortType
=
.
la
t
est
// 当前页面选中的
// 当前页面选中的
var
selectedModel
:
[
AssetModel
]
=
[]
{
var
selectedModel
:
[
AssetModel
]
=
[]
{
...
@@ -169,11 +169,11 @@ class HomePhotosDetailViewController : BaseViewController {
...
@@ -169,11 +169,11 @@ class HomePhotosDetailViewController : BaseViewController {
}
}
self
.
videoDetailNavView
?
.
startSelectCallBack
=
{[
weak
self
]
choose
in
self
.
videoDetailNavView
?
.
startSelectCallBack
=
{[
weak
self
]
choose
in
guard
let
self
else
{
return
}
guard
let
self
else
{
return
}
if
!
choose
{
// if !choose {
self
.
selectedModel
.
removeAll
()
}
DispatchQueue
.
main
.
async
{
// }
DispatchQueue
.
main
.
async
{
self
.
selectedModel
.
removeAll
()
UIView
.
transition
(
with
:
self
.
collectionView
,
duration
:
0.3
,
options
:
.
transitionCrossDissolve
,
animations
:
{
UIView
.
transition
(
with
:
self
.
collectionView
,
duration
:
0.3
,
options
:
.
transitionCrossDissolve
,
animations
:
{
self
.
collectionView
.
reloadData
()
self
.
collectionView
.
reloadData
()
},
completion
:
nil
)
},
completion
:
nil
)
...
...
PhoneManager/Class/Page/Home/Controller/HomeVideoDetailController.swift
View file @
3c92cedf
...
@@ -30,7 +30,7 @@ class HomeVideoDetailController :BaseViewController {
...
@@ -30,7 +30,7 @@ class HomeVideoDetailController :BaseViewController {
var
resourceData
:
[
AssetModel
]
=
[]
var
resourceData
:
[
AssetModel
]
=
[]
// 排序
// 排序
var
currentSort
:
ResouceSortType
=
.
la
rg
est
var
currentSort
:
ResouceSortType
=
.
la
t
est
// 当前页面选中的
// 当前页面选中的
var
selectedModel
:
[
AssetModel
]
=
[]
{
var
selectedModel
:
[
AssetModel
]
=
[]
{
...
@@ -208,11 +208,11 @@ class HomeVideoDetailController :BaseViewController {
...
@@ -208,11 +208,11 @@ class HomeVideoDetailController :BaseViewController {
self
.
videoDetailNavView
?
.
startSelectCallBack
=
{[
weak
self
]
choose
in
self
.
videoDetailNavView
?
.
startSelectCallBack
=
{[
weak
self
]
choose
in
guard
let
self
else
{
return
}
guard
let
self
else
{
return
}
if
!
choose
{
// if !choose {
self
.
selectedModel
.
removeAll
()
}
DispatchQueue
.
main
.
async
{
// }
DispatchQueue
.
main
.
async
{
self
.
selectedModel
.
removeAll
()
UIView
.
transition
(
with
:
self
.
collectionView
,
duration
:
0.3
,
options
:
.
transitionCrossDissolve
,
animations
:
{
UIView
.
transition
(
with
:
self
.
collectionView
,
duration
:
0.3
,
options
:
.
transitionCrossDissolve
,
animations
:
{
self
.
collectionView
.
reloadData
()
self
.
collectionView
.
reloadData
()
},
completion
:
nil
)
},
completion
:
nil
)
...
...
PhoneManager/Class/Page/Home/Controller/PhotoRemoveViewController.swift
View file @
3c92cedf
...
@@ -395,6 +395,8 @@ class PhotoRemoveViewController: BaseViewController {
...
@@ -395,6 +395,8 @@ class PhotoRemoveViewController: BaseViewController {
self
.
view
.
addSubview
(
photoView
)
self
.
view
.
addSubview
(
photoView
)
photoView
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
width
-
30
,
509
*
RScreenH
())
photoView
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
width
-
30
,
509
*
RScreenH
())
photoView
.
center
=
self
.
view
.
center
photoView
.
center
=
self
.
view
.
center
photoView
.
innerVideoController
?
.
player
?
.
isMuted
=
true
photoView
.
innerVideoController
?
.
player
?
.
volume
=
0
photoViews
.
append
(
photoView
)
photoViews
.
append
(
photoView
)
}
}
...
@@ -530,8 +532,6 @@ class PhotoRemoveViewController: BaseViewController {
...
@@ -530,8 +532,6 @@ class PhotoRemoveViewController: BaseViewController {
}
}
}
}
// MARK: - 视图更新逻辑
// MARK: - 视图更新逻辑
private
func
updateViewContents
()
{
private
func
updateViewContents
()
{
for
(
index
,
view
)
in
photoViews
.
enumerated
()
{
for
(
index
,
view
)
in
photoViews
.
enumerated
()
{
...
@@ -620,6 +620,7 @@ class PhotoRemoveViewController: BaseViewController {
...
@@ -620,6 +620,7 @@ class PhotoRemoveViewController: BaseViewController {
newView
.
addGestureRecognizer
(
UIPanGestureRecognizer
(
target
:
self
,
action
:
#selector(
handlePan
)
))
newView
.
addGestureRecognizer
(
UIPanGestureRecognizer
(
target
:
self
,
action
:
#selector(
handlePan
)
))
newView
.
alpha
=
0
newView
.
alpha
=
0
view
.
addSubview
(
newView
)
view
.
addSubview
(
newView
)
photoViews
.
append
(
newView
)
photoViews
.
append
(
newView
)
// 更新索引并加载新内容
// 更新索引并加载新内容
...
...
PhoneManager/Class/Page/Home/View/HomeInfoView.swift
View file @
3c92cedf
...
@@ -545,11 +545,12 @@ class HomeInfoTitleView:UIView {
...
@@ -545,11 +545,12 @@ class HomeInfoTitleView:UIView {
lazy
var
filterButton
:
UIButton
=
{
lazy
var
filterButton
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
button
.
setImage
(
UIImage
(
named
:
"Frame 1"
),
for
:
.
normal
)
button
.
setImage
(
UIImage
(
named
:
"Frame 1"
),
for
:
.
normal
)
button
.
setTitle
(
"la
rg
est"
,
for
:
.
normal
)
button
.
setTitle
(
"la
t
est"
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
14
button
.
layer
.
cornerRadius
=
14
button
.
clipsToBounds
=
true
button
.
clipsToBounds
=
true
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
12
,
weight
:
.
semibold
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
,
weight
:
.
semibold
)
button
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
isHidden
=
true
button
.
isHidden
=
true
...
...
PhoneManager/Class/Page/Home/View/HomePhotosDetailCustomHeaderView.swift
View file @
3c92cedf
...
@@ -26,11 +26,12 @@ class HomePhotosDetailCustomHeaderView : UICollectionReusableView {
...
@@ -26,11 +26,12 @@ class HomePhotosDetailCustomHeaderView : UICollectionReusableView {
lazy
var
filterButton
:
UIButton
=
{
lazy
var
filterButton
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
button
.
setImage
(
UIImage
(
named
:
"Frame 1"
),
for
:
.
normal
)
button
.
setImage
(
UIImage
(
named
:
"Frame 1"
),
for
:
.
normal
)
button
.
setTitle
(
"la
rg
est"
,
for
:
.
normal
)
button
.
setTitle
(
"la
t
est"
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
14
button
.
layer
.
cornerRadius
=
14
button
.
clipsToBounds
=
true
button
.
clipsToBounds
=
true
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
12
,
weight
:
.
semibold
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
14
,
weight
:
.
semibold
)
button
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
isHidden
=
false
button
.
isHidden
=
false
...
...
PhoneManager/Class/Page/Home/View/HomeTabbarView.swift
View file @
3c92cedf
...
@@ -56,7 +56,7 @@ class HomeTabbarView:UIView {
...
@@ -56,7 +56,7 @@ class HomeTabbarView:UIView {
btn
.
width
=
cW
btn
.
width
=
cW
btn
.
tag
=
10
+
index
btn
.
tag
=
10
+
index
btn
.
height
=
cH
btn
.
height
=
cH
btn
.
y
=
0
//safeHeight == 0 ? 6 : 12
btn
.
y
=
6
//safeHeight == 0 ? 6 : 12
btn
.
x
=
16
+
Double
(
index
)
*
cW
btn
.
x
=
16
+
Double
(
index
)
*
cW
btn
.
changBtnWithStytl
(
btnStyle
:
.
imageTop
,
margin
:
2
)
btn
.
changBtnWithStytl
(
btnStyle
:
.
imageTop
,
margin
:
2
)
self
.
addSubview
(
btn
)
self
.
addSubview
(
btn
)
...
...
PhoneManager/Class/Page/Home/View/HomeVideoDetailCustomHeaderView.swift
View file @
3c92cedf
...
@@ -24,12 +24,13 @@ class HomeVideoDetailCustomHeaderView : UICollectionReusableView {
...
@@ -24,12 +24,13 @@ class HomeVideoDetailCustomHeaderView : UICollectionReusableView {
lazy
var
filterButton
:
UIButton
=
{
lazy
var
filterButton
:
UIButton
=
{
let
button
=
UIButton
(
type
:
.
custom
)
let
button
=
UIButton
(
type
:
.
custom
)
button
.
setImage
(
UIImage
(
named
:
"Frame 1"
),
for
:
.
normal
)
button
.
setImage
(
UIImage
(
named
:
"Frame 1"
),
for
:
.
normal
)
button
.
setTitle
(
"la
rg
est"
,
for
:
.
normal
)
button
.
setTitle
(
"la
t
est"
,
for
:
.
normal
)
button
.
layer
.
cornerRadius
=
14
button
.
layer
.
cornerRadius
=
14
button
.
clipsToBounds
=
true
button
.
clipsToBounds
=
true
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
backgroundColor
=
UIColor
(
red
:
0
,
green
:
0.51
,
blue
:
1
,
alpha
:
0.1000
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
1
2
,
weight
:
.
semibold
)
button
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
1
4
,
weight
:
.
semibold
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
setTitleColor
(
UIColor
(
red
:
0.07
,
green
:
0.07
,
blue
:
0.07
,
alpha
:
1
),
for
:
.
normal
)
button
.
titleEdgeInsets
=
UIEdgeInsets
(
top
:
0
,
left
:
5
,
bottom
:
0
,
right
:
0
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
addTarget
(
self
,
action
:
#selector(
filterButtonAction
)
,
for
:
.
touchUpInside
)
button
.
isHidden
=
false
button
.
isHidden
=
false
return
button
return
button
...
...
PhoneManager/Class/Page/Home/View/HomeView.swift
View file @
3c92cedf
...
@@ -305,7 +305,7 @@ extension HomeView:WaterfallMutiSectionDelegate,UICollectionViewDataSource,UICol
...
@@ -305,7 +305,7 @@ extension HomeView:WaterfallMutiSectionDelegate,UICollectionViewDataSource,UICol
let
model
=
viewModel
.
headerGroup
[
indexPath
.
row
]
//model?.titleModelArray[indexPath.row]
let
model
=
viewModel
.
headerGroup
[
indexPath
.
row
]
//model?.titleModelArray[indexPath.row]
if
model
.
assets
.
count
>
0
{
if
model
.
assets
.
count
>
0
{
return
(
model
.
assets
.
first
?
.
count
??
0
)
>
2
?
((
collection
.
width
-
marginLR
-
20
)
/
2.2
)
+
64
:
((
collection
.
width
-
2
*
marginLR
-
10
)
/
2
)
+
64
return
(
model
.
assets
.
first
?
.
count
??
0
)
>
2
?
((
collection
.
width
-
marginLR
-
20
)
/
2.2
)
+
50
:
((
collection
.
width
-
2
*
marginLR
-
4
)
/
2.0
)
+
50
}
else
{
}
else
{
return
38
return
38
...
@@ -417,6 +417,13 @@ extension HomeView:WaterfallMutiSectionDelegate,UICollectionViewDataSource,UICol
...
@@ -417,6 +417,13 @@ extension HomeView:WaterfallMutiSectionDelegate,UICollectionViewDataSource,UICol
return
CGSize
.
zero
return
CGSize
.
zero
}
}
func
referenceSizeForFooter
(
collectionView
collection
:
UICollectionView
,
layout
:
WaterfallMutiSectionFlowLayout
,
section
:
Int
)
->
CGSize
{
if
section
==
0
{
return
CGSize
(
width
:
ScreenW
,
height
:
0
)
}
return
CGSize
(
width
:
ScreenW
,
height
:
20
)
}
func
getOuterCollectionViewHeader
()
->
UICollectionReusableView
?
{
func
getOuterCollectionViewHeader
()
->
UICollectionReusableView
?
{
let
indexPath
=
IndexPath
(
item
:
0
,
section
:
0
)
let
indexPath
=
IndexPath
(
item
:
0
,
section
:
0
)
return
self
.
collectionView
.
supplementaryView
(
forElementKind
:
UICollectionView
.
elementKindSectionHeader
,
at
:
indexPath
)
return
self
.
collectionView
.
supplementaryView
(
forElementKind
:
UICollectionView
.
elementKindSectionHeader
,
at
:
indexPath
)
...
...
PhoneManager/Class/Page/Home/View/PhotosRemoveBaseView.swift
View file @
3c92cedf
...
@@ -26,7 +26,6 @@ class PhotosRemoveBaseView: UIView {
...
@@ -26,7 +26,6 @@ class PhotosRemoveBaseView: UIView {
vc
.
isAutoPlay
=
index
==
0
vc
.
isAutoPlay
=
index
==
0
vc
.
url
=
url
vc
.
url
=
url
self
.
imageView
.
removeFromSuperview
()
self
.
imageView
.
removeFromSuperview
()
self
.
addSubview
(
vc
.
view
)
self
.
addSubview
(
vc
.
view
)
vc
.
view
.
snp
.
makeConstraints
{
make
in
vc
.
view
.
snp
.
makeConstraints
{
make
in
make
.
left
.
top
.
bottom
.
right
.
equalToSuperview
()
make
.
left
.
top
.
bottom
.
right
.
equalToSuperview
()
...
...
PhoneManager/Class/Page/Home/View/ResourceFilterBoxView.swift
View file @
3c92cedf
...
@@ -19,7 +19,7 @@ enum ResouceSortType : String{
...
@@ -19,7 +19,7 @@ enum ResouceSortType : String{
struct
ResourceFilterBoxModel
{
struct
ResourceFilterBoxModel
{
var
startDate
:
Date
?
var
startDate
:
Date
?
var
endDate
:
Date
?
var
endDate
:
Date
?
var
sortType
:
ResouceSortType
=
.
la
rg
est
var
sortType
:
ResouceSortType
=
.
la
t
est
init
(
startDate
:
Date
?
=
nil
,
endDate
:
Date
?
=
nil
,
sortType
:
ResouceSortType
)
{
init
(
startDate
:
Date
?
=
nil
,
endDate
:
Date
?
=
nil
,
sortType
:
ResouceSortType
)
{
self
.
startDate
=
startDate
self
.
startDate
=
startDate
...
@@ -35,7 +35,7 @@ class ResourceFilterBoxView : UIView {
...
@@ -35,7 +35,7 @@ class ResourceFilterBoxView : UIView {
var
startDate
:
Date
?
var
startDate
:
Date
?
var
endDate
:
Date
?
var
endDate
:
Date
?
var
currentSortType
:
ResouceSortType
=
.
la
rg
est
var
currentSortType
:
ResouceSortType
=
.
la
t
est
let
tableData
:
[
String
]
=
[
"largest"
,
"smallest"
,
"latest"
,
"oldest"
]
let
tableData
:
[
String
]
=
[
"largest"
,
"smallest"
,
"latest"
,
"oldest"
]
var
callBack
:
callBack
<
Any
>
=
{
sortType
in
}
var
callBack
:
callBack
<
Any
>
=
{
sortType
in
}
...
...
PhoneManager/Class/Page/Home/View/VideoDetaiNavView.swift
View file @
3c92cedf
...
@@ -123,8 +123,8 @@ class VideoDetaiNavView : UIView {
...
@@ -123,8 +123,8 @@ class VideoDetaiNavView : UIView {
@objc
func
startSelectButtonAction
(){
@objc
func
startSelectButtonAction
(){
self
.
startSelectButton
.
isSelected
=
!
self
.
startSelectButton
.
isSelected
self
.
startSelectButton
.
isSelected
=
!
self
.
startSelectButton
.
isSelected
self
.
seletedAllBtn
.
isHidden
=
!
self
.
startSelectButton
.
isSelected
self
.
seletedAllBtn
.
isHidden
=
!
self
.
startSelectButton
.
isSelected
if
!
self
.
startSelectButton
.
isSelected
{
if
!
self
.
startSelectButton
.
isSelected
{
seletedAllBtn
.
isSelected
=
tru
e
seletedAllBtn
.
isSelected
=
fals
e
seletedAllBtnClick
()
seletedAllBtnClick
()
}
}
backButton
.
isHidden
=
self
.
startSelectButton
.
isSelected
backButton
.
isHidden
=
self
.
startSelectButton
.
isSelected
...
...
PhoneManager/Class/Page/Home/View/cell/HomeTitleCollectionCell.swift
View file @
3c92cedf
...
@@ -47,7 +47,7 @@ class HomeTitleCollectionCell:UICollectionViewCell {
...
@@ -47,7 +47,7 @@ class HomeTitleCollectionCell:UICollectionViewCell {
self
.
layer
.
masksToBounds
=
true
self
.
layer
.
masksToBounds
=
true
titleLabel
=
UILabel
()
titleLabel
=
UILabel
()
titleLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
18
,
weight
:
.
bold
)
titleLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
18
,
weight
:
.
semi
bold
)
titleLabel
.
textColor
=
UIColor
.
colorWithHex
(
hexStr
:
black3Color
)
titleLabel
.
textColor
=
UIColor
.
colorWithHex
(
hexStr
:
black3Color
)
fileLabel
=
UILabel
()
fileLabel
=
UILabel
()
...
...
PhoneManager/Class/Page/Keep/View/MaintaiBottomView.swift
View file @
3c92cedf
...
@@ -25,6 +25,11 @@ class MaintaiBottomView: UIView {
...
@@ -25,6 +25,11 @@ class MaintaiBottomView: UIView {
disMiss
()
disMiss
()
}
}
override
func
layoutSubviews
()
{
super
.
layoutSubviews
()
self
.
setShadow
(
cornerRadius
:
0
,
sColor
:
UIColor
.
colorWithHex
(
hexStr
:
"#1475B9"
),
offset
:
CGSizeMake
(
3
,
-
1
),
opacity
:
0.15
)
}
func
show
(){
func
show
(){
guard
isshow
==
false
else
{
guard
isshow
==
false
else
{
return
return
...
...
PhoneManager/Class/Page/Keep/View/MaintaiBottomView.xib
View file @
3c92cedf
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"23
504
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<document
type=
"com.apple.InterfaceBuilder3.CocoaTouch.XIB"
version=
"3.0"
toolsVersion=
"23
727
"
targetRuntime=
"iOS.CocoaTouch"
propertyAccessControl=
"none"
useAutolayout=
"YES"
useTraitCollections=
"YES"
useSafeAreas=
"YES"
colorMatched=
"YES"
>
<device
id=
"retina6_12"
orientation=
"portrait"
appearance=
"light"
/>
<device
id=
"retina6_12"
orientation=
"portrait"
appearance=
"light"
/>
<dependencies>
<dependencies>
<deployment
identifier=
"iOS"
/>
<deployment
identifier=
"iOS"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"23
506
"
/>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"23
721
"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
</dependencies>
<objects>
<objects>
...
@@ -48,7 +47,7 @@
...
@@ -48,7 +47,7 @@
</button>
</button>
</subviews>
</subviews>
<viewLayoutGuide
key=
"safeArea"
id=
"7oF-X4-Rdp"
/>
<viewLayoutGuide
key=
"safeArea"
id=
"7oF-X4-Rdp"
/>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor
"
/>
<color
key=
"backgroundColor"
red=
"0.94901960784313721"
green=
"0.96470588235294119"
blue=
"0.9882352941176471"
alpha=
"1"
colorSpace=
"calibratedRGB
"
/>
<constraints>
<constraints>
<constraint
firstItem=
"7oF-X4-Rdp"
firstAttribute=
"trailing"
secondItem=
"XE9-Mv-kN1"
secondAttribute=
"trailing"
constant=
"16"
id=
"4te-5s-zea"
/>
<constraint
firstItem=
"7oF-X4-Rdp"
firstAttribute=
"trailing"
secondItem=
"XE9-Mv-kN1"
secondAttribute=
"trailing"
constant=
"16"
id=
"4te-5s-zea"
/>
<constraint
firstItem=
"XE9-Mv-kN1"
firstAttribute=
"top"
secondItem=
"CTb-Ac-3zM"
secondAttribute=
"top"
constant=
"20"
id=
"Cog-R5-MKA"
/>
<constraint
firstItem=
"XE9-Mv-kN1"
firstAttribute=
"top"
secondItem=
"CTb-Ac-3zM"
secondAttribute=
"top"
constant=
"20"
id=
"Cog-R5-MKA"
/>
...
@@ -64,9 +63,4 @@
...
@@ -64,9 +63,4 @@
<point
key=
"canvasLocation"
x=
"-216.79389312977099"
y=
"-187.32394366197184"
/>
<point
key=
"canvasLocation"
x=
"-216.79389312977099"
y=
"-187.32394366197184"
/>
</view>
</view>
</objects>
</objects>
<resources>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
</document>
PhoneManager/Class/Page/Secret/PMShowImgVideoController.swift
View file @
3c92cedf
...
@@ -76,7 +76,7 @@ class PMShowImgVideoController: BaseViewController {
...
@@ -76,7 +76,7 @@ class PMShowImgVideoController: BaseViewController {
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
super
.
viewWillAppear
(
animated
)
super
.
viewWillAppear
(
animated
)
self
.
MaxCollection
.
snp
.
makeConstraints
{
make
in
self
.
MaxCollection
.
snp
.
makeConstraints
{
make
in
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
2
0
)
make
.
left
.
right
.
equalToSuperview
()
.
inset
(
0
)
make
.
top
.
equalTo
(
titleView
.
snp
.
bottom
)
.
offset
(
20
)
make
.
top
.
equalTo
(
titleView
.
snp
.
bottom
)
.
offset
(
20
)
make
.
bottom
.
equalTo
(
bottItems
.
snp
.
top
)
make
.
bottom
.
equalTo
(
bottItems
.
snp
.
top
)
// make.bottom.equalToSuperview().inset(100 + (cWindow?.safeAreaInsets.bottom ?? 0))
// make.bottom.equalToSuperview().inset(100 + (cWindow?.safeAreaInsets.bottom ?? 0))
...
@@ -296,6 +296,9 @@ extension PMShowImgVideoController : UICollectionViewDelegate,UICollectionViewDa
...
@@ -296,6 +296,9 @@ extension PMShowImgVideoController : UICollectionViewDelegate,UICollectionViewDa
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
func
collectionView
(
_
collectionView
:
UICollectionView
,
didSelectItemAt
indexPath
:
IndexPath
)
{
if
collectionView
==
bottItems
{
if
collectionView
==
bottItems
{
if
(
indexPath
.
row
>
self
.
homeDataSource
?
.
count
??
0
)
{
return
}
if
state
!=
.
secret
{
if
state
!=
.
secret
{
self
.
vibrate
()
self
.
vibrate
()
if
selectSet
.
contains
(
indexPath
.
row
)
{
if
selectSet
.
contains
(
indexPath
.
row
)
{
...
@@ -305,7 +308,12 @@ extension PMShowImgVideoController : UICollectionViewDelegate,UICollectionViewDa
...
@@ -305,7 +308,12 @@ extension PMShowImgVideoController : UICollectionViewDelegate,UICollectionViewDa
self
.
homeDataSource
?[
indexPath
.
row
]
.
isSeleted
=
true
self
.
homeDataSource
?[
indexPath
.
row
]
.
isSeleted
=
true
selectSet
.
add
(
indexPath
.
row
)
selectSet
.
add
(
indexPath
.
row
)
}
}
self
.
MaxCollection
.
reloadData
()
if
let
cell
:
PMShowImgCell
=
self
.
MaxCollection
.
cellForItem
(
at
:
indexPath
)
as?
PMShowImgCell
{
cell
.
isCurrent
=
selectSet
.
contains
(
indexPath
.
row
)
}
if
let
cell
:
PMShowVideoCell
=
self
.
MaxCollection
.
cellForItem
(
at
:
indexPath
)
as?
PMShowVideoCell
{
cell
.
isCurrent
=
selectSet
.
contains
(
indexPath
.
row
)
}
collectionView
.
reloadData
()
collectionView
.
reloadData
()
}
else
{
}
else
{
self
.
currentIdx
=
indexPath
.
row
;
self
.
currentIdx
=
indexPath
.
row
;
...
@@ -480,7 +488,8 @@ extension PMShowImgVideoController : UICollectionViewDelegate,UICollectionViewDa
...
@@ -480,7 +488,8 @@ extension PMShowImgVideoController : UICollectionViewDelegate,UICollectionViewDa
self
.
homeDataSource
?[
indexPath
.
row
]
.
isSeleted
=
true
self
.
homeDataSource
?[
indexPath
.
row
]
.
isSeleted
=
true
self
.
selectSet
.
add
(
indexPath
.
row
)
self
.
selectSet
.
add
(
indexPath
.
row
)
}
}
self
.
MaxCollection
.
reloadData
()
cell
.
isCurrent
=
selectSet
.
contains
(
indexPath
.
row
)
// self.MaxCollection.reloadData()
self
.
bottItems
.
reloadData
()
self
.
bottItems
.
reloadData
()
}
}
return
cell
return
cell
...
...
PhoneManager/Class/Page/Secret/View/SecretBottomView.swift
View file @
3c92cedf
...
@@ -65,10 +65,11 @@ class SecretBottomView: UIView {
...
@@ -65,10 +65,11 @@ class SecretBottomView: UIView {
private
lazy
var
but
:
UIButton
=
{
private
lazy
var
but
:
UIButton
=
{
let
b
=
UIButton
(
type
:
.
custom
)
let
b
=
UIButton
(
type
:
.
custom
)
b
.
backgroundColor
=
.
colorWithHex
(
hexStr
:
"#0082FF"
)
b
.
backgroundColor
=
.
colorWithHex
(
hexStr
:
"#0082FF"
)
b
.
layer
.
cornerRadius
=
46
/
2.0
b
.
layer
.
cornerRadius
=
12
b
.
clipsToBounds
=
true
b
.
clipsToBounds
=
true
b
.
setTitle
(
"Add New"
,
for
:
.
normal
)
b
.
setTitle
(
"Add New"
,
for
:
.
normal
)
b
.
setImage
(
UIImage
(
named
:
"ic_add_secret"
),
for
:
.
normal
)
b
.
setImage
(
UIImage
(
named
:
"ic_add_secret"
),
for
:
.
normal
)
b
.
titleLabel
?
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
.
semibold
)
b
.
addTarget
(
self
,
action
:
#selector(
AddNew
)
,
for
:
.
touchUpInside
)
b
.
addTarget
(
self
,
action
:
#selector(
AddNew
)
,
for
:
.
touchUpInside
)
return
b
return
b
}()
}()
...
...
PhoneManager/Class/Page/Widget/WidgetViewController.swift
View file @
3c92cedf
...
@@ -193,6 +193,7 @@ class WidgetViewController: BaseViewController {
...
@@ -193,6 +193,7 @@ class WidgetViewController: BaseViewController {
page
.
currentPageIndicatorTintColor
=
.
colorWithHex
(
hexStr
:
"#0082FF"
)
page
.
currentPageIndicatorTintColor
=
.
colorWithHex
(
hexStr
:
"#0082FF"
)
page
.
pageIndicatorTintColor
=
.
colorWithHex
(
hexStr
:
"#C6CEE0"
)
page
.
pageIndicatorTintColor
=
.
colorWithHex
(
hexStr
:
"#C6CEE0"
)
view
.
addSubview
(
page
)
view
.
addSubview
(
page
)
page
.
isHidden
=
true
return
page
return
page
}()
}()
...
...
PhoneManager/Class/Session/Email/Controller/EmailCleanListController.swift
View file @
3c92cedf
...
@@ -12,6 +12,13 @@ class EmailCleanListController: BaseViewController {
...
@@ -12,6 +12,13 @@ class EmailCleanListController: BaseViewController {
override
func
viewDidLoad
()
{
override
func
viewDidLoad
()
{
super
.
viewDidLoad
()
super
.
viewDidLoad
()
self
.
view
.
backgroundColor
=
.
white
self
.
view
.
backgroundColor
=
.
white
NotificationCenter
.
default
.
addObserver
(
self
,
selector
:
#selector(
uupddate
)
,
name
:
messageUpdate
,
object
:
nil
)
}
@objc
func
uupddate
()
->
Void
{
DispatchQueue
.
main
.
async
{
self
.
datasoure
=
PMEmailManager
.
shareManager
.
allMessage
[
self
.
indexPath
?
.
row
??
0
]
.
child
}
}
}
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
@@ -35,15 +42,6 @@ class EmailCleanListController: BaseViewController {
...
@@ -35,15 +42,6 @@ class EmailCleanListController: BaseViewController {
@objc
func
seletedAllBtnClick
()
{
@objc
func
seletedAllBtnClick
()
{
DispatchQueue
.
main
.
async
{[
weak
self
]
in
DispatchQueue
.
main
.
async
{[
weak
self
]
in
guard
let
self
else
{
return
}
guard
let
self
else
{
return
}
// seletedAllBtn.isSelected = !seletedAllBtn.isSelected
// UIView.animate(withDuration: 0.2) {
// self.seletedAllBtn.width = self.seletedAllBtn.isSelected ? 131 : 115
// self.seletedAllBtn.x = self.titleView.width - marginLR - self.seletedAllBtn.width
// } completion: { su in
// if su {
// self.seletedAllBtn.isUserInteractionEnabled = true
// }
// }
tableView
.
changeSelectAll
(
seletedAllBtn
.
isSelected
)
tableView
.
changeSelectAll
(
seletedAllBtn
.
isSelected
)
}
}
}
}
...
@@ -64,8 +62,6 @@ class EmailCleanListController: BaseViewController {
...
@@ -64,8 +62,6 @@ class EmailCleanListController: BaseViewController {
make
.
height
.
equalTo
(
32
)
make
.
height
.
equalTo
(
32
)
make
.
centerY
.
equalTo
(
titleView
.
backBtn
.
snp
.
centerY
)
make
.
centerY
.
equalTo
(
titleView
.
backBtn
.
snp
.
centerY
)
}
}
// seletedAllBtn.centerY = navCenterY
// seletedAllBtn.x = titleView.width - marginLR - seletedAllBtn.width
}
}
lazy
var
titleLabel
:
UILabel
=
{
lazy
var
titleLabel
:
UILabel
=
{
...
...
PhoneManager/Class/Tool/Email/PMEmailManager.swift
View file @
3c92cedf
...
@@ -228,14 +228,14 @@ class PMEmailManager: NSObject {
...
@@ -228,14 +228,14 @@ class PMEmailManager: NSObject {
for
i
in
0
..<
5
{
for
i
in
0
..<
5
{
for
row
in
EmailFilterManager
.
share
.
SelectEmailSet
[
i
]
.
allObjects
{
for
row
in
EmailFilterManager
.
share
.
SelectEmailSet
[
i
]
.
allObjects
{
guard
let
rowInt
=
row
as?
Int
else
{
return
}
guard
let
rowInt
=
row
as?
Int
else
{
return
}
guard
let
msgId
=
PMEmailManager
.
shareManager
.
messageFilter
[
i
]
.
child
[
rowInt
]
.
messageId
else
{
return
}
guard
let
msgId
=
PMEmailManager
.
shareManager
.
allMessage
[
i
]
.
child
[
rowInt
]
.
messageId
else
{
return
}
messageID
.
add
(
msgId
)
messageID
.
add
(
msgId
)
}
}
}
}
}
else
{
}
else
{
for
row
in
EmailFilterManager
.
share
.
SelectEmailSet
[
indexPath
]
.
allObjects
{
for
row
in
EmailFilterManager
.
share
.
SelectEmailSet
[
indexPath
]
.
allObjects
{
guard
let
rowInt
=
row
as?
Int
else
{
return
}
guard
let
rowInt
=
row
as?
Int
else
{
return
}
guard
let
msgId
=
PMEmailManager
.
shareManager
.
messageFilter
[
indexPath
]
.
child
[
rowInt
]
.
messageId
else
{
return
}
guard
let
msgId
=
PMEmailManager
.
shareManager
.
allMessage
[
indexPath
]
.
child
[
rowInt
]
.
messageId
else
{
return
}
messageID
.
add
(
msgId
)
messageID
.
add
(
msgId
)
}
}
}
}
...
@@ -278,7 +278,8 @@ class PMEmailManager: NSObject {
...
@@ -278,7 +278,8 @@ class PMEmailManager: NSObject {
})
})
EmailFilterManager
.
share
.
SelectEmailSet
[
all
]
=
NSMutableSet
()
EmailFilterManager
.
share
.
SelectEmailSet
[
all
]
=
NSMutableSet
()
}
}
PMEmailManager
.
shareManager
.
allMessage
=
PMEmailManager
.
shareManager
.
messageFilter
emailSort
()
// PMEmailManager.shareManager.allMessage = PMEmailManager.shareManager.messageFilter
}
}
func
Analysis
(
message
:
GTLRGmail_Message
)
->
EmailMessageModel
{
func
Analysis
(
message
:
GTLRGmail_Message
)
->
EmailMessageModel
{
...
...
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