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

Attributed title display issue #279

Closed
shiablue opened this issue Mar 30, 2017 · 5 comments
Closed

Attributed title display issue #279

shiablue opened this issue Mar 30, 2017 · 5 comments

Comments

@shiablue
Copy link

    NSDictionary *attributed = @{NSForegroundColorAttributeName : [UIColor whiteColor],
                                 NSFontAttributeName : [UIFont systemFontOfSize:16.f]};
    NSMutableAttributedString *string = [[NSMutableAttributedString alloc] initWithString:@"Title" attributes:attributed];
    NSTextAttachment *attachment = [[NSTextAttachment alloc] init];
    attachment.image = [UIImage imageNamed:@"img_segmented_chevron_highlight"];
    NSAttributedString *attachString = [NSAttributedString attributedStringWithAttachment:attachment];
    [string appendAttributedString:attachString];

My question is the attachment not display.

@ChowZhu
Copy link

ChowZhu commented Jun 6, 2017

I have the same issue in my project, but my question is that I used "setTitleFormatter" , It would be display on iOS 10, but not work on iOS8 and iOS9.

@rahulvyas
Copy link

I also have the same issue attachment icon from attributed string doesn't display

@domingoxx
Copy link

+1, same issue on iOS11.

@HeshamMegid
Copy link
Owner

@shiablue are you setting the attributed text using setTitleFormatter?

@HeshamMegid
Copy link
Owner

Closing for now, please feel free to reopen if it's still an issue.

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

5 participants