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
4f12f443
Commit
4f12f443
authored
Sep 29, 2020
by
lmj_521aiau@163.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'branch_1.0.1' of gitlab.huolea.com:lmi/shorthandmaster into branch_1.0.1
parents
87dd31b4
1daaf8c8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
257 additions
and
68 deletions
+257
-68
SHInputController.swift
ShorthandMaster/Input/Controller/SHInputController.swift
+253
-64
SHInputAudioPlayView.swift
ShorthandMaster/Input/View/SHInputAudioPlayView.swift
+1
-1
SHInputBottomView.swift
ShorthandMaster/Input/View/SHInputBottomView.swift
+1
-1
SHInputView.swift
ShorthandMaster/Input/View/SHInputView.swift
+2
-2
No files found.
ShorthandMaster/Input/Controller/SHInputController.swift
View file @
4f12f443
This diff is collapsed.
Click to expand it.
ShorthandMaster/Input/View/SHInputAudioPlayView.swift
View file @
4f12f443
...
@@ -64,7 +64,7 @@ class SHInputAudioPlayView: UIView {
...
@@ -64,7 +64,7 @@ class SHInputAudioPlayView: UIView {
// 播放速度按钮
// 播放速度按钮
self
.
speedButton
=
UIButton
(
type
:
.
system
)
self
.
speedButton
=
UIButton
(
type
:
.
system
)
self
.
speedButton
.
setTitle
(
"x1
.5
"
,
for
:
.
normal
)
self
.
speedButton
.
setTitle
(
"x1"
,
for
:
.
normal
)
self
.
speedButton
.
setTitleColor
(
UIColor
(
r
:
65
,
g
:
131
,
b
:
244
),
for
:
.
normal
)
self
.
speedButton
.
setTitleColor
(
UIColor
(
r
:
65
,
g
:
131
,
b
:
244
),
for
:
.
normal
)
self
.
speedButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
SHPingFangMedium
,
size
:
14
)
self
.
speedButton
.
titleLabel
?
.
font
=
UIFont
(
name
:
SHPingFangMedium
,
size
:
14
)
self
.
addSubview
(
self
.
speedButton
)
self
.
addSubview
(
self
.
speedButton
)
...
...
ShorthandMaster/Input/View/SHInputBottomView.swift
View file @
4f12f443
...
@@ -198,7 +198,7 @@ class SHInputBottomView: UIView {
...
@@ -198,7 +198,7 @@ class SHInputBottomView: UIView {
// 箭头图片
// 箭头图片
self
.
directionImageView
=
UIImageView
()
self
.
directionImageView
=
UIImageView
()
self
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
down
"
)
self
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
up
"
)
self
.
addSubview
(
self
.
directionImageView
)
self
.
addSubview
(
self
.
directionImageView
)
self
.
directionImageView
.
isHidden
=
self
.
isEdited
self
.
directionImageView
.
isHidden
=
self
.
isEdited
...
...
ShorthandMaster/Input/View/SHInputView.swift
View file @
4f12f443
...
@@ -103,7 +103,7 @@ class SHInputView: UIView {
...
@@ -103,7 +103,7 @@ class SHInputView: UIView {
// MARK: 监听键盘出现
// MARK: 监听键盘出现
@objc
func
keyboardWillShow
(
note
:
Notification
)
@objc
func
keyboardWillShow
(
note
:
Notification
)
{
{
self
.
bottomView
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
up
"
)
self
.
bottomView
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
down
"
)
let
info
:
Dictionary
=
note
.
userInfo
!
as
Dictionary
let
info
:
Dictionary
=
note
.
userInfo
!
as
Dictionary
let
value
=
info
[
UIResponder
.
keyboardFrameEndUserInfoKey
]
let
value
=
info
[
UIResponder
.
keyboardFrameEndUserInfoKey
]
...
@@ -132,7 +132,7 @@ class SHInputView: UIView {
...
@@ -132,7 +132,7 @@ class SHInputView: UIView {
// MARK: 监听键盘消失
// MARK: 监听键盘消失
@objc
func
keyboardWillHide
(
note
:
Notification
)
@objc
func
keyboardWillHide
(
note
:
Notification
)
{
{
self
.
bottomView
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
down
"
)
self
.
bottomView
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
up
"
)
weak
var
weakSelf
=
self
weak
var
weakSelf
=
self
...
...
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