Skip to content

Commit 409ed4e

Browse files
committed
优化
1 parent dba56c3 commit 409ed4e

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

Coding_iOS/Controllers/Login/LoginViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ - (UIImageView *)bgBlurredView{
118118

119119
CGSize bgImageSize = bgImage.size, bgViewSize = bgView.frame.size;
120120
if (bgImageSize.width > bgViewSize.width && bgImageSize.height > bgViewSize.height) {
121-
bgImage = [bgImage scaleToSize:[bgView doubleSizeOfFrame] usingMode:NYXResizeModeAspectFill];
121+
bgImage = [bgImage scaleToSize:bgViewSize usingMode:NYXResizeModeAspectFill];
122122
}
123123
bgImage = [bgImage applyLightEffectAtFrame:CGRectMake(0, 0, bgImage.size.width, bgImage.size.height)];
124124
bgView.image = bgImage;

Coding_iOS/Vendor/PopMenu/MenuButton.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
5858
}
5959

6060
- (void)popBegan{
61+
[self pop_removeAllAnimations];
6162
// 播放缩放动画
6263
POPSpringAnimation *scaleAnimation = [POPSpringAnimation animation];
6364
scaleAnimation.springBounciness = 20; // value between 0-20

Coding_iOS/Vendor/PopMenu/PopMenu.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ - (void)initailzerAnimationWithToPostion:(CGRect)toRect formPostion:(CGRect)from
262262
springAnimation.removedOnCompletion = YES;
263263
springAnimation.beginTime = beginTime + CACurrentMediaTime();
264264
// CGFloat springBounciness = 6 - beginTime * 2;
265-
CGFloat springBounciness = 10;
265+
CGFloat springBounciness = 6;
266266
springAnimation.springBounciness = springBounciness; // value between 0-20
267267

268268
// CGFloat springSpeed = 6 - beginTime * 2;

0 commit comments

Comments
 (0)