Skip to content

hasUIKitAdditions is reversed. #4

Description

@flemingm

in MNAttributedString.m

Updated.

if TARGET_OS_IPHONE

+(BOOL)hasUIKitAdditions { // NSAttributeString is enhanced in ios 6.0
return ([[[UIDevice currentDevice] systemVersion] compare:@"6.0"] != NSOrderedAscending);
}

endif

Also on ios 5.1 I need to define some def for NS

NSLog(@"NSKernAttributeName '%@'", NSKernAttributeName);
NSLog(@"NSLigatureAttributeName '%@'", NSLigatureAttributeName);
NSLog(@"NSStrokeWidthAttributeName '%@'", NSStrokeWidthAttributeName);
NSLog(@"NSUnderlineStyleAttributeName '%@'", NSUnderlineStyleAttributeName);
NSLog(@"NSForegroundColorAttributeName '%@'", NSForegroundColorAttributeName);
NSLog(@"NSStrokeColorAttributeName '%@'", NSStrokeColorAttributeName);
NSLog(@"NSVerticalGlyphFormAttributeName '%@'", NSVerticalGlyphFormAttributeName);
NSLog(@"NSString *NSFontAttributeName = @"%@"", NSFontAttributeName);
NSLog(@"NSString *NSParagraphStyleAttributeName = @"%@"", NSParagraphStyleAttributeName);

I will make this a pull request at same time as issue #3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions