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
e6f8ff4d
Commit
e6f8ff4d
authored
Jun 09, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善更新appUI
parent
4d7a7d0b
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
79 additions
and
20 deletions
+79
-20
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
...ata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/Contents.json
...form/Assets.xcassets/工作中心/upapptop.imageset/Contents.json
+23
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop.png
...tform/Assets.xcassets/工作中心/upapptop.imageset/upapptop.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@2x.png
...rm/Assets.xcassets/工作中心/upapptop.imageset/upapptop@2x.png
+0
-0
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@3x.png
...rm/Assets.xcassets/工作中心/upapptop.imageset/upapptop@3x.png
+0
-0
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
+2
-0
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
+35
-14
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
...essPlatform/ViewController/工作中心/WorkCViewController.swift
+19
-6
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/liujunhong.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e6f8ff4d
No preview for this file type
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/Contents.json
0 → 100644
View file @
e6f8ff4d
{
"images"
:
[
{
"filename"
:
"upapptop.png"
,
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"upapptop@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"upapptop@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop.png
0 → 100644
View file @
e6f8ff4d
24.4 KB
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@2x.png
0 → 100644
View file @
e6f8ff4d
64.3 KB
GeliBusinessPlatform/Assets.xcassets/工作中心/upapptop.imageset/upapptop@3x.png
0 → 100644
View file @
e6f8ff4d
118 KB
GeliBusinessPlatform/View/AlertView/GeliAlertView.swift
View file @
e6f8ff4d
...
...
@@ -11,6 +11,8 @@ protocol GeliAlertViewDelegate {
func
sureGeliAlertViewAction
(
sender
:
UIButton
)
}
class
GeliAlertView
:
UIView
{
@IBOutlet
weak
var
versionLbl
:
UILabel
!
@IBOutlet
weak
var
upAppIconV
:
UIImageView
!
var
contentView
:
UIView
!
var
delegate
:
GeliAlertViewDelegate
?
@IBOutlet
weak
var
titileLbl
:
UILabel
!
...
...
GeliBusinessPlatform/View/AlertView/GeliAlertView.xib
View file @
e6f8ff4d
This diff is collapsed.
Click to expand it.
GeliBusinessPlatform/ViewController/工作中心/WorkCViewController.swift
View file @
e6f8ff4d
...
...
@@ -608,10 +608,16 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
if
appStoreVersion
!=
oldappStoreVersion
as
!
String
{
self
.
updateStr
=
json
[
"results"
][
0
][
"trackViewUrl"
]
.
string
!
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
upAppIconV
.
isHidden
=
false
alertView
.
versionLbl
.
isHidden
=
false
alertView
.
versionLbl
.
text
=
"V"
+
json
[
"results"
][
0
][
"version"
]
.
string
!
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
json
[
"results"
][
0
][
"releaseNotes"
]
.
string
alertView
.
titileLbl
.
text
=
"有新版本可更新"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"去更新"
),
for
:
.
normal
)
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
json
[
"results"
][
0
][
"releaseNotes"
]
.
string
alertView
.
titileLbl
.
textAlignment
=
.
left
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"立即更新"
),
for
:
.
normal
)
alertView
.
leftBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"残忍拒绝"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
1515684912
alertView
.
appStoreVersion
=
appStoreVersion
self
.
view
.
window
?
.
addSubview
(
alertView
)
...
...
@@ -619,10 +625,16 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
}
else
{
self
.
updateStr
=
json
[
"results"
][
0
][
"trackViewUrl"
]
.
string
!
let
alertView
=
GeliAlertView
(
frame
:
self
.
view
.
window
!.
bounds
)
alertView
.
upAppIconV
.
isHidden
=
false
alertView
.
versionLbl
.
isHidden
=
false
alertView
.
versionLbl
.
text
=
"V"
+
json
[
"results"
][
0
][
"version"
]
.
string
!
alertView
.
delegate
=
self
;
alertView
.
tishiLbl
.
text
=
json
[
"results"
][
0
][
"releaseNotes"
]
.
string
alertView
.
titileLbl
.
text
=
"有新版本可更新"
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"去更新"
),
for
:
.
normal
)
alertView
.
tishiLbl
.
text
=
""
alertView
.
titileLbl
.
text
=
json
[
"results"
][
0
][
"releaseNotes"
]
.
string
alertView
.
titileLbl
.
textAlignment
=
.
left
alertView
.
rightBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"立即更新"
),
for
:
.
normal
)
alertView
.
leftBtn
.
setAttributedTitle
(
NSAttributedString
(
string
:
"残忍拒绝"
),
for
:
.
normal
)
alertView
.
rightBtn
.
tag
=
1515684912
alertView
.
appStoreVersion
=
appStoreVersion
self
.
view
.
window
?
.
addSubview
(
alertView
)
...
...
@@ -630,6 +642,7 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
}
else
{
print
(
"不需要更新哦---"
)
}
}
}
...
...
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