Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
陈高翔
/
DreamSleep-iOS
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 5c79badf
由
cgx
编写于
2022-07-06 09:06:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
修复已签到积分显示问题(布局问题)
1 个父辈
496223a0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
7 行增加
和
7 行删除
DreamSleep/DreamSleep/Class/ProfileModule/ScoreTaskAI/View/DailyBgView.m
DreamSleep/DreamSleep/Vendors/DPScrollNumberLabel/DPScrollNumberLabel.m
DreamSleep/DreamSleep/Class/ProfileModule/ScoreTaskAI/View/DailyBgView.m
查看文件 @
5c79bad
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
// 积分需要动画显示效果
// 积分需要动画显示效果
[
self
.
pointsLab
changeToNumber
:
@
(
points
)
animated
:
YES
];
[
self
.
pointsLab
changeToNumber
:
@
(
points
)
animated
:
YES
];
self
.
todayLab
.
text
=
@"今日积分"
;
self
.
todayLab
.
text
=
@"今日积分"
;
[
self
.
pointsLab
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
[
self
.
pointsLab
mas_
re
makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
equalTo
(
self
).
offset
(
15
);
make
.
left
.
equalTo
(
self
).
offset
(
15
);
make
.
top
.
equalTo
(
self
).
offset
(
136
);
make
.
top
.
equalTo
(
self
).
offset
(
136
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
self
.
pointsLab
.
frame
.
size
.
width
,
self
.
pointsLab
.
frame
.
size
.
height
));
make
.
size
.
mas_equalTo
(
CGSizeMake
(
self
.
pointsLab
.
frame
.
size
.
width
,
self
.
pointsLab
.
frame
.
size
.
height
));
...
...
DreamSleep/DreamSleep/Vendors/DPScrollNumberLabel/DPScrollNumberLabel.m
查看文件 @
5c79bad
...
@@ -400,27 +400,27 @@ static NSString * const numberCellText = @"0\n9\n8\n7\n6\n5\n4\n3\n2\n1\n0\n1\n2
...
@@ -400,27 +400,27 @@ static NSString * const numberCellText = @"0\n9\n8\n7\n6\n5\n4\n3\n2\n1\n0\n1\n2
[
UIView
animateWithDuration
:
attribute
.
startDuration
delay
:
attribute
.
startDelay
options
:
UIViewAnimationOptionCurveEaseIn
animations
:^
{
[
UIView
animateWithDuration
:
attribute
.
startDuration
delay
:
attribute
.
startDelay
options
:
UIViewAnimationOptionCurveEaseIn
animations
:^
{
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)?
10
:
0
sign
:
attribute
.
sign
];
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)?
10
:
0
sign
:
attribute
.
sign
];
}
completion
:^
(
BOOL
finished
)
{
}
completion
:^
(
BOOL
finished
)
{
N
SLog
(
@"start animation finish!"
);
D
SLog
(
@"start animation finish!"
);
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)?
0
:
10
sign
:
attribute
.
sign
];
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)?
0
:
10
sign
:
attribute
.
sign
];
if
(
attribute
.
cycleDuration
==
0
)
{
if
(
attribute
.
cycleDuration
==
0
)
{
[
UIView
animateWithDuration
:
attribute
.
endDuration
delay
:
0
options
:
UIViewAnimationOptionCurveEaseOut
animations
:^
{
[
UIView
animateWithDuration
:
attribute
.
endDuration
delay
:
0
options
:
UIViewAnimationOptionCurveEaseOut
animations
:^
{
[
self
moveNumberCell
:
cell
toNumber
:
attribute
.
targetNumber
sign
:
attribute
.
sign
];
[
self
moveNumberCell
:
cell
toNumber
:
attribute
.
targetNumber
sign
:
attribute
.
sign
];
}
completion
:^
(
BOOL
finished
)
{
}
completion
:^
(
BOOL
finished
)
{
[
self
oneAnimationDidFinishedWithTotalCount
:
count
];
[
self
oneAnimationDidFinishedWithTotalCount
:
count
];
N
SLog
(
@"end animation finish!"
);
D
SLog
(
@"end animation finish!"
);
}];
}];
}
else
{
}
else
{
[
UIView
animateWithDuration
:
attribute
.
cycleDuration
delay
:
0
options
:
UIViewAnimationOptionCurveLinear
|
UIViewAnimationOptionRepeat
animations
:^
{
[
UIView
animateWithDuration
:
attribute
.
cycleDuration
delay
:
0
options
:
UIViewAnimationOptionCurveLinear
|
UIViewAnimationOptionRepeat
animations
:^
{
[
UIView
setAnimationRepeatCount
:
attribute
.
repeatCount
];
[
UIView
setAnimationRepeatCount
:
attribute
.
repeatCount
];
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)
?
10
:
0
sign
:
attribute
.
sign
];
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)
?
10
:
0
sign
:
attribute
.
sign
];
}
completion
:^
(
BOOL
finished
)
{
}
completion
:^
(
BOOL
finished
)
{
N
SLog
(
@"cycle animation finish!"
);
D
SLog
(
@"cycle animation finish!"
);
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)?
0
:
10
sign
:
attribute
.
sign
];
[
self
moveNumberCell
:
cell
toNumber
:(
direction
==
ScrollAnimationDirectionIncrease
)?
0
:
10
sign
:
attribute
.
sign
];
[
UIView
animateWithDuration
:
attribute
.
endDuration
delay
:
0
options
:
UIViewAnimationOptionCurveEaseOut
animations
:^
{
[
UIView
animateWithDuration
:
attribute
.
endDuration
delay
:
0
options
:
UIViewAnimationOptionCurveEaseOut
animations
:^
{
[
self
moveNumberCell
:
cell
toNumber
:
attribute
.
targetNumber
sign
:
attribute
.
sign
];
[
self
moveNumberCell
:
cell
toNumber
:
attribute
.
targetNumber
sign
:
attribute
.
sign
];
}
completion
:^
(
BOOL
finished
)
{
}
completion
:^
(
BOOL
finished
)
{
[
self
oneAnimationDidFinishedWithTotalCount
:
count
];
[
self
oneAnimationDidFinishedWithTotalCount
:
count
];
N
SLog
(
@"end animation finish!"
);
D
SLog
(
@"end animation finish!"
);
}];
}];
}];
}];
}
}
...
@@ -434,7 +434,7 @@ static NSString * const numberCellText = @"0\n9\n8\n7\n6\n5\n4\n3\n2\n1\n0\n1\n2
...
@@ -434,7 +434,7 @@ static NSString * const numberCellText = @"0\n9\n8\n7\n6\n5\n4\n3\n2\n1\n0\n1\n2
[
self
moveNumberCell
:
cell
toNumber
:
displayNumber
sign
:
sign
];
[
self
moveNumberCell
:
cell
toNumber
:
displayNumber
sign
:
sign
];
}
completion
:^
(
BOOL
finished
)
{
}
completion
:^
(
BOOL
finished
)
{
[
self
oneAnimationDidFinishedWithTotalCount
:
count
];
[
self
oneAnimationDidFinishedWithTotalCount
:
count
];
N
SLog
(
@"single animation finish!"
);
D
SLog
(
@"single animation finish!"
);
}];
}];
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论