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
c9b388a8
Commit
c9b388a8
authored
Sep 27, 2020
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
3a2189a1
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
18 deletions
+36
-18
project.pbxproj
ShorthandMaster.xcodeproj/project.pbxproj
+4
-4
SHInputController.swift
ShorthandMaster/Input/Controller/SHInputController.swift
+4
-4
SHInputAudioButton.swift
ShorthandMaster/Input/View/SHInputAudioButton.swift
+2
-2
SHInputBottomView.swift
ShorthandMaster/Input/View/SHInputBottomView.swift
+26
-8
No files found.
ShorthandMaster.xcodeproj/project.pbxproj
View file @
c9b388a8
...
...
@@ -132,7 +132,7 @@
CC13DB6A251C83E600835654
/* SHInputViewModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC13DB69251C83E600835654
/* SHInputViewModel.swift */
;
};
CC13DB6F251C972600835654
/* SHInputModel.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC13DB6E251C972600835654
/* SHInputModel.swift */
;
};
CC13DB74251C9A2F00835654
/* SHInputTextView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC13DB73251C9A2F00835654
/* SHInputTextView.swift */
;
};
CC13DB79251CA62800835654
/* SHI
mputAudioButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC13DB78251CA62800835654
/* SHIm
putAudioButton.swift */
;
};
CC13DB79251CA62800835654
/* SHI
nputAudioButton.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC13DB78251CA62800835654
/* SHIn
putAudioButton.swift */
;
};
CC29A704251C50520059BD5C
/* SHInputController.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC29A703251C50520059BD5C
/* SHInputController.swift */
;
};
CC29A709251C71AC0059BD5C
/* SHSwift.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC29A708251C71AC0059BD5C
/* SHSwift.swift */
;
};
CC29A716251C75210059BD5C
/* SHInputView.swift in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
CC29A715251C75210059BD5C
/* SHInputView.swift */
;
};
...
...
@@ -331,7 +331,7 @@
CC13DB69251C83E600835654
/* SHInputViewModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHInputViewModel.swift
;
sourceTree
=
"<group>"
;
};
CC13DB6E251C972600835654
/* SHInputModel.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHInputModel.swift
;
sourceTree
=
"<group>"
;
};
CC13DB73251C9A2F00835654
/* SHInputTextView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHInputTextView.swift
;
sourceTree
=
"<group>"
;
};
CC13DB78251CA62800835654
/* SHI
mputAudioButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHIm
putAudioButton.swift
;
sourceTree
=
"<group>"
;
};
CC13DB78251CA62800835654
/* SHI
nputAudioButton.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHIn
putAudioButton.swift
;
sourceTree
=
"<group>"
;
};
CC29A703251C50520059BD5C
/* SHInputController.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHInputController.swift
;
sourceTree
=
"<group>"
;
};
CC29A708251C71AC0059BD5C
/* SHSwift.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHSwift.swift
;
sourceTree
=
"<group>"
;
};
CC29A715251C75210059BD5C
/* SHInputView.swift */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.swift
;
path
=
SHInputView.swift
;
sourceTree
=
"<group>"
;
};
...
...
@@ -827,7 +827,7 @@
CC29A715251C75210059BD5C
/* SHInputView.swift */
,
CC13DB73251C9A2F00835654
/* SHInputTextView.swift */
,
CC29A71A251C790D0059BD5C
/* SHInputBottomView.swift */
,
CC13DB78251CA62800835654
/* SHI
m
putAudioButton.swift */
,
CC13DB78251CA62800835654
/* SHI
n
putAudioButton.swift */
,
);
path
=
View
;
sourceTree
=
"<group>"
;
...
...
@@ -1137,7 +1137,7 @@
A95CE03624E1729B0066DAE6
/* SHRecordWaveView.swift in Sources */
,
A950F5AA24F3727A007AB63E
/* SHRecordListCell.swift in Sources */
,
A9A16C812519DDC400DE0FEE
/* PopContainerView.swift in Sources */
,
CC13DB79251CA62800835654
/* SHI
m
putAudioButton.swift in Sources */
,
CC13DB79251CA62800835654
/* SHI
n
putAudioButton.swift in Sources */
,
A94DD56B24FDF29700B1B5A2
/* XBAudioConverterPlayer.m in Sources */
,
A94EE11D251B7E510066B490
/* SHRecordDetailsVC.swift in Sources */
,
A9A16C6E2519DD6900DE0FEE
/* PinyinFormatter.m in Sources */
,
...
...
ShorthandMaster/Input/Controller/SHInputController.swift
View file @
c9b388a8
...
...
@@ -590,7 +590,7 @@ extension SHInputController: UIImagePickerControllerDelegate, UINavigationContro
extension
SHInputController
{
// MARK: 点击添加录音按钮
@objc
func
didSelectedAddAudioButton
(
sender
:
SHI
m
putAudioButton
)
@objc
func
didSelectedAddAudioButton
(
sender
:
SHI
n
putAudioButton
)
{
self
.
shInputView
.
bottomView
.
addAudioButton
.
isHidden
=
true
self
.
shInputView
.
bottomView
.
pauseAudioButton
.
isHidden
=
false
...
...
@@ -610,7 +610,7 @@ extension SHInputController
}
// MARK: 点击暂停录音按钮
@objc
func
didSelectedPauseAudioButton
(
sender
:
SHI
m
putAudioButton
)
@objc
func
didSelectedPauseAudioButton
(
sender
:
SHI
n
putAudioButton
)
{
self
.
shInputView
.
bottomView
.
addAudioButton
.
isHidden
=
true
self
.
shInputView
.
bottomView
.
pauseAudioButton
.
isHidden
=
true
...
...
@@ -627,7 +627,7 @@ extension SHInputController
}
// MARK: 点击继续录音按钮
@objc
func
didSelectedGoOnAudioButton
(
sender
:
SHI
m
putAudioButton
)
@objc
func
didSelectedGoOnAudioButton
(
sender
:
SHI
n
putAudioButton
)
{
self
.
shInputView
.
bottomView
.
addAudioButton
.
isHidden
=
true
self
.
shInputView
.
bottomView
.
pauseAudioButton
.
isHidden
=
false
...
...
@@ -644,7 +644,7 @@ extension SHInputController
}
// MARK: 点击结束录制按钮
@objc
func
didSelectedStopAudioButton
(
sender
:
SHI
m
putAudioButton
)
@objc
func
didSelectedStopAudioButton
(
sender
:
SHI
n
putAudioButton
)
{
self
.
shInputView
.
bottomView
.
addAudioButton
.
isHidden
=
false
self
.
shInputView
.
bottomView
.
pauseAudioButton
.
isHidden
=
true
...
...
ShorthandMaster/Input/View/SHI
m
putAudioButton.swift
→
ShorthandMaster/Input/View/SHI
n
putAudioButton.swift
View file @
c9b388a8
//
// SHI
m
putAudioButton.swift
// SHI
n
putAudioButton.swift
// ShorthandMaster
//
// Created by 张哲 on 2020/9/24.
...
...
@@ -8,7 +8,7 @@
import
UIKit
class
SHI
m
putAudioButton
:
UIButton
{
class
SHI
n
putAudioButton
:
UIButton
{
// MARK: - property
/// 背景
...
...
ShorthandMaster/Input/View/SHInputBottomView.swift
View file @
c9b388a8
...
...
@@ -16,17 +16,26 @@ class SHInputBottomView: UIView {
/// 选择图片按钮
var
imageButton
:
UIButton
!
/// 录音按钮背景
var
audioBgView
:
UIView
!
/// 录制时间背景
var
audioTimeBgView
:
UIView
!
/// 录制时间小红点
var
audioTimePointView
:
UIView
!
/// 录制时间
var
audioTimeLabel
:
UIView
!
/// 添加录音按钮
var
addAudioButton
:
SHI
m
putAudioButton
!
var
addAudioButton
:
SHI
n
putAudioButton
!
/// 暂停录音按钮
var
pauseAudioButton
:
SHI
m
putAudioButton
!
var
pauseAudioButton
:
SHI
n
putAudioButton
!
/// 继续录音按钮
var
goOnAudioButton
:
SHI
m
putAudioButton
!
var
goOnAudioButton
:
SHI
n
putAudioButton
!
/// 结束录音按钮
var
stopAudioButton
:
SHImputAudioButton
!
var
stopAudioButton
:
SHInputAudioButton
!
/// 键盘按钮
var
keyboardButton
:
UIButton
!
...
...
@@ -68,8 +77,17 @@ class SHInputBottomView: UIView {
self
.
audioBgView
=
UIView
()
self
.
bgView
.
addSubview
(
self
.
audioBgView
)
// 录制时间背景
self
.
audioTimeBgView
=
UIView
()
self
.
audioTimeBgView
.
backgroundColor
=
UIColor
(
r
:
241
,
g
:
241
,
b
:
241
)
self
.
audioTimeBgView
.
layer
.
masksToBounds
=
true
self
.
bgView
.
addSubview
(
self
.
audioTimeBgView
)
// 录制时间小红点
// 录制时间
// 添加录音按钮
self
.
addAudioButton
=
SHI
m
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
addAudioButton
=
SHI
n
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
addAudioButton
.
layer
.
cornerRadius
=
15
self
.
addAudioButton
.
backgroundColor
=
UIColor
(
r
:
250
,
g
:
219
,
b
:
219
)
self
.
addAudioButton
.
leftImageView
.
image
=
UIImage
(
named
:
"input_addAudio"
)
...
...
@@ -78,7 +96,7 @@ class SHInputBottomView: UIView {
self
.
audioBgView
.
addSubview
(
self
.
addAudioButton
)
// 暂停录音按钮
self
.
pauseAudioButton
=
SHI
m
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
pauseAudioButton
=
SHI
n
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
pauseAudioButton
.
layer
.
cornerRadius
=
15
self
.
pauseAudioButton
.
backgroundColor
=
UIColor
(
r
:
219
,
g
:
231
,
b
:
250
)
self
.
pauseAudioButton
.
leftImageView
.
image
=
UIImage
(
named
:
"input_pause"
)
...
...
@@ -88,7 +106,7 @@ class SHInputBottomView: UIView {
self
.
pauseAudioButton
.
isHidden
=
true
// 继续录音按钮
self
.
goOnAudioButton
=
SHI
m
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
goOnAudioButton
=
SHI
n
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
goOnAudioButton
.
layer
.
cornerRadius
=
15
self
.
goOnAudioButton
.
backgroundColor
=
UIColor
(
r
:
250
,
g
:
234
,
b
:
219
)
self
.
goOnAudioButton
.
leftImageView
.
image
=
UIImage
(
named
:
"input_goOn"
)
...
...
@@ -98,7 +116,7 @@ class SHInputBottomView: UIView {
self
.
goOnAudioButton
.
isHidden
=
true
// 结束录音按钮
self
.
stopAudioButton
=
SHI
m
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
stopAudioButton
=
SHI
n
putAudioButton
(
type
:
UIButton
.
ButtonType
.
custom
)
self
.
stopAudioButton
.
layer
.
cornerRadius
=
15
self
.
stopAudioButton
.
backgroundColor
=
UIColor
(
r
:
250
,
g
:
219
,
b
:
219
)
self
.
stopAudioButton
.
leftImageView
.
image
=
UIImage
(
named
:
"input_stop"
)
...
...
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