Latest 0.1.2
Homepage https://github.com/reden87/R87AttributedString
License MIT
Platforms ios 4.3, requires ARC
Frameworks Foundation
Authors

Version
License
Platform

Introduction

With the help of R87AttributedString you can format attributed texts easily.

For example you can add the thext #like this# or like this and you can specify from code how the text inside the # and * characters should look like.

Screenshot

Installation

R87AttributedString is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'R87AttributedString'

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

You can use the librarly like this:

NSString *textString = @"*CocoaPods Events*nn#Code of Conduct#nAll attendees, speakers, sponsors and volunteers...";
NSDictionary *defaultTextAttributes = @{
    NSForegroundColorAttributeName: [UIColor blackColor],
    NSFontAttributeName: [UIFont systemFontOfSize:14.0],
};
NSMutableAttributedString *text = [[NSMutableAttributedString alloc] initWithString:textString attributes:defaultTextAttributes];

,
} betweenCharacters:@"#"];

,
    NSFontAttributeName: [UIFont systemFontOfSize:35.0],
} betweenCharacters:@"*"];

self.textView.attributedText = text;

Compatibility

iOS 4.3+

License

R87AttributedString is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "R87AttributedString",
    "version": "0.1.2",
    "summary": "With the help of R87AttributedString you can format attributed texts easily.",
    "description": "You can format attributed texts easily: for example you can add the thext #like this# or *like this* and you can specify from code how the text inside the # and * characters should look like.",
    "homepage": "https://github.com/reden87/R87AttributedString",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gergo Nemeth": "[email protected]"
    },
    "source": {
        "git": "https://github.com/reden87/R87AttributedString.git",
        "tag": "0.1.2"
    },
    "social_media_url": "https://twitter.com/reden87",
    "platforms": {
        "ios": "4.3"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h",
    "frameworks": "Foundation"
}

Pin It on Pinterest

Share This