代码 & UI 小优化

This commit is contained in:
eggmanQQQ
2024-10-29 17:10:56 +08:00
parent 1f6b060898
commit 0e00f4df11
23 changed files with 80 additions and 90 deletions

View File

@@ -49,7 +49,7 @@
[UIView animateWithDuration:0.25 animations:^{
bannerView.center = CGPointMake(superView.center.x, height/2 + 80);
} completion:^(BOOL finished) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(2.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[UIView animateWithDuration:0.25 delay:0 options:UIViewAnimationOptionCurveEaseInOut animations:^{
bannerView.frame = CGRectMake(-KScreenWidth, 80, width, height);
} completion:^(BOOL finished) {
@@ -200,9 +200,9 @@
[self.bgImageView loadImageWithUrl:model.resourceContent completion:^(UIImage * _Nullable image, NSURL * _Nonnull url) {
@kStrongify(self);
if (image) {
[self loadLocalSVGA];
} else {
self.bgImageView.image = image;
} else {
[self loadLocalSVGA];
}
}];
}