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

Crashes once i try setting an nsattributestring #16

Open
pakmee opened this issue Sep 7, 2012 · 3 comments
Open

Crashes once i try setting an nsattributestring #16

pakmee opened this issue Sep 7, 2012 · 3 comments

Comments

@pakmee
Copy link

pakmee commented Sep 7, 2012

I tried setting an nsatttributed string and it crashes straightaway...

@BobCromwell
Copy link

is this project still be maintained by anyone?

@voicecho
Copy link

Have you fixed this bug? It crashes on iOS5 but ok with iOS6.

@voicecho
Copy link

It crashed when i m using UIFont to set the attribute, as I change to the following code, it works fine.

    UIFont *font = [UIFont systemFontOfSize:14];
    CTFontRef ctFont = CTFontCreateWithName((CFStringRef) font.fontName, font.pointSize, NULL);
    NSDictionary *atrFont = [NSDictionary dictionaryWithObject:(id)ctFont forKey:(NSString *)kCTFontAttributeName];
    [self.egoTextView setAttributedString:[[NSAttributedString alloc] initWithString:@"test" attributes:atrFont]];

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

3 participants