Started to Implement Evaluation
Corrected Some Errors Cleaned Code
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
@interface MPExpressionLayout (MPLineGeneration)
|
||||
|
||||
- (CTLineRef)lineForElementAtIndex:(NSUInteger)index;
|
||||
- (CTLineRef)createLineForString:(NSString *)aString;
|
||||
|
||||
@end
|
||||
|
||||
@@ -36,16 +35,6 @@
|
||||
return (__bridge CTLineRef)lineObject;
|
||||
}
|
||||
|
||||
- (CTLineRef)createLineForString:(NSString *)aString
|
||||
{
|
||||
NSAttributedString *text = [[NSAttributedString alloc] initWithString:aString
|
||||
attributes:@{NSFontAttributeName: self.font}];
|
||||
CFAttributedStringRef attributedString = CFBridgingRetain(text);
|
||||
CTLineRef line = CTLineCreateWithAttributedString(attributedString);
|
||||
CFRelease(attributedString); // TODO: Is this release appropriate?
|
||||
return line;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation MPExpressionLayout
|
||||
|
||||
Reference in New Issue
Block a user