Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
S
ShorthandMaster
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
ShorthandMaster
Commits
818a59b3
Commit
818a59b3
authored
Aug 28, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c5feba56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
SHRecordShowViewController.swift
ShorthandMaster/Record/SHRecordShowViewController.swift
+10
-2
SHRecordViewController.swift
ShorthandMaster/Record/SHRecordViewController.swift
+3
-2
No files found.
ShorthandMaster/Record/SHRecordShowViewController.swift
View file @
818a59b3
...
...
@@ -186,9 +186,17 @@ class SHRecordShowViewController: SHBaseViewController {
playingTimeLab
.
text
=
self
.
countSecond
(
playerTimeCount
)
progress
.
value
=
Float
(
playerTimeCount
)
if
playerTimeCount
>=
model
!.
during
{
var
total
:
Int
?
if
let
time
=
player
?
.
duration
{
total
=
Int
(
time
)
totalTimeLab
.
text
=
self
.
countSecond
(
total
!
)
progress
.
maximumValue
=
Float
(
total
!
)
}
if
playerTimeCount
>=
((
total
!=
nil
?
total
:
model
!.
during
)
!
){
playerTimer
?
.
invalidate
()
progress
.
value
=
1.0
progress
.
value
=
Float
(((
total
!=
nil
?
total
:
model
!.
during
)
!
))
recorderBtn
.
isSelected
=
true
playerTimeCount
=
0
}
...
...
ShorthandMaster/Record/SHRecordViewController.swift
View file @
818a59b3
...
...
@@ -346,11 +346,12 @@ class SHRecordViewController: SHBaseViewController {
}
if
self
.
recorderBtn
.
isSelected
==
true
{
if
self
.
start
==
fals
e
{
if
self
.
start
==
tru
e
{
self
.
speechStop
()
self
.
configSpeechTask
()
}
else
{
self
.
start
=
false
}
else
{
// self.start = false
}
}
}
...
...
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