EGOTextView
EGOTextView copied to clipboard
Crashes once i try setting an nsattributestring
I tried setting an nsatttributed string and it crashes straightaway...
is this project still be maintained by anyone?
Have you fixed this bug? It crashes on iOS5 but ok with iOS6.
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]];