Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VirtualCard-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
APP
VirtualCard-iOS
Commits
30feeb58
Commit
30feeb58
authored
May 27, 2020
by
guanghui.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密码文案居中
parent
5c2e1fcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
QGDepositPwdView.m
...lasses/Card/Function/QGDeposit/PwdView/QGDepositPwdView.m
+14
-1
No files found.
VirtualPayment/VirtualPayment/QGClasses/Card/Function/QGDeposit/PwdView/QGDepositPwdView.m
View file @
30feeb58
...
...
@@ -16,6 +16,9 @@
@interface
QGDepositPwdView
()
///背景
@property
(
nonatomic
,
strong
)
QGDesignatedCornerView
*
backView
;
/// 密码框
@property
(
nonatomic
,
strong
)
QGPwdTextView
*
textView
;
...
...
@@ -75,6 +78,7 @@
QGDesignatedCornerView
*
backView
=
[[
QGDesignatedCornerView
alloc
]
initWithRadius
:
20
corner
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
];
backView
.
backgroundColor
=
UIColor
.
whiteColor
;
[
self
.
contentView
addSubview
:
backView
];
self
.
backView
=
backView
;
[
backView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
edges
.
equalTo
(
self
.
contentView
);
...
...
@@ -220,7 +224,7 @@
-
(
void
)
keyboardWillHideNotification
:(
NSNotification
*
)
not
{
NSDictionary
*
userInfo
=
not
.
userInfo
;
CGRect
keyboardBounds
=
[[
userInfo
objectForKey
:
UIKeyboardFrameEndUserInfoKey
]
CGRectValue
];
//
CGRect keyboardBounds = [[userInfo objectForKey:UIKeyboardFrameEndUserInfoKey] CGRectValue];
//获取键盘动画的duration
CGFloat
duration
=
[[
userInfo
objectForKey
:
UIKeyboardAnimationDurationUserInfoKey
]
doubleValue
];
...
...
@@ -305,14 +309,23 @@
self
.
acountTitleLab
.
text
=
@"转出账户"
;
self
.
depositeTitleLab
.
text
=
@"转入金额"
;
self
.
depositeImageV
.
image
=
[
UIImage
imageNamed
:
@"deposit_in"
];
[
self
.
depositeTitleLab
mas_updateConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
.
backView
).
offset
(
13
);
}];
}
else
if
(
type
==
QGDepositTypeOut
){
self
.
acountTitleLab
.
text
=
@"转出账户"
;
self
.
depositeTitleLab
.
text
=
@"转出金额"
;
self
.
depositeImageV
.
image
=
[
UIImage
imageNamed
:
@"deposit_out"
];
[
self
.
depositeTitleLab
mas_updateConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
.
backView
).
offset
(
13
);
}];
}
else
if
(
type
==
QGDepositTypeRepay
){
self
.
acountTitleLab
.
text
=
@"付款方式"
;
self
.
depositeTitleLab
.
text
=
@"享花卡还款"
;
self
.
depositeImageV
.
image
=
nil
;
[
self
.
depositeTitleLab
mas_updateConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
.
backView
);
}];
}
}
}
...
...
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