Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

加载远程动画,添加的文本不显示 #23

Open
miebavip opened this issue Jan 19, 2021 · 0 comments
Open

加载远程动画,添加的文本不显示 #23

miebavip opened this issue Jan 19, 2021 · 0 comments

Comments

@miebavip
Copy link

miebavip commented Jan 19, 2021

[parser parseWithURL:[NSURL URLWithString:filePath] completionBlock:^(SVGAVideoEntity * _Nullable videoItem) {

            if(videoItem !=nil) {

                weakSelf.gameWinAnimation.videoItem = videoItem;
                NSAttributedString *text = [[NSAttributedString alloc] initWithString:[NSString stringWithFormat:@"编号%d", message.Win] attributes:@{NSForegroundColorAttributeName: [UIColor colorWithHexString:@"#FBF29F"],NSFontAttributeName: [UIFont boldSystemFontOfSize:42.0],}];
                [weakSelf.gameWinAnimation setAttributedText:text forKey:@"songxicontent"];
                [weakSelf.gameWinAnimation startAnimation];
            }
        } failureBlock:^(NSError * _Nullable error) {
            weakSelf.showGameWinAnimation = NO;
        }];
@miebavip miebavip reopened this Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant