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
1daaf8c8
Commit
1daaf8c8
authored
Sep 29, 2020
by
zhangzhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
6f7db351
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 @
1daaf8c8
This diff is collapsed.
Click to expand it.
ShorthandMaster/Input/View/SHInputAudioPlayView.swift
View file @
1daaf8c8
...
...
@@ -64,7 +64,7 @@ class SHInputAudioPlayView: UIView {
// 播放速度按钮
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
.
titleLabel
?
.
font
=
UIFont
(
name
:
SHPingFangMedium
,
size
:
14
)
self
.
addSubview
(
self
.
speedButton
)
...
...
ShorthandMaster/Input/View/SHInputBottomView.swift
View file @
1daaf8c8
...
...
@@ -198,7 +198,7 @@ class SHInputBottomView: UIView {
// 箭头图片
self
.
directionImageView
=
UIImageView
()
self
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
down
"
)
self
.
directionImageView
.
image
=
UIImage
(
named
:
"input_
up
"
)
self
.
addSubview
(
self
.
directionImageView
)
self
.
directionImageView
.
isHidden
=
self
.
isEdited
...
...
ShorthandMaster/Input/View/SHInputView.swift
View file @
1daaf8c8
...
...
@@ -103,7 +103,7 @@ class SHInputView: UIView {
// MARK: 监听键盘出现
@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
value
=
info
[
UIResponder
.
keyboardFrameEndUserInfoKey
]
...
...
@@ -132,7 +132,7 @@ class SHInputView: UIView {
// MARK: 监听键盘消失
@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
...
...
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