Search Results for coretext
With CoreTextLabel you are able draw NSAttributedString or HTML with custom font and color in iOS (>= 5.0) applications. numberOfLines and truncation (NSLineBreakByTruncatingTail) is also supported. Example: CoreTextLabel* label = [[CoreTextLabel alloc] initWithFrame:frame]; label.html = htmlString; [label sizeToFit]; [self.view addSubview:label];
MDHTMLLabel is a lightweight, easy to use class for rendering text containing HTML tags on iOS 6.0+. It behaves almost exactly the same as UILabel and allows you to fully customize its appearence with added features thanks to CoreText. It also lets you handle when a user taps or holds down a link in the label unlike many similar libraries. It provides: - Link interaction - Auto-detection of URLs not wrapped in anchor tags - Bold and italic text styles - Color and stroke styles - Indentation, kerning and line spacing settings - Text shadow styles
This library allows you to generate PDF files from HTML, NSAttributedStrings, and NSStrings. It uses DTCoreText from Cocoanetics to generate the NSAttributedString from HTML, then renders that string into a paged PDF context on the device. It saves the resulting file in the Documents folder on the device, and hands back the URL. At the moment, only text is supported in HTML. No images, tables, hr's, etc. Basic CSS is used to format the text in style="" attributes. This component was built by Mobile World Software, and is granted under the BSD license.
NSAttributedString is pretty rad. When it was ported into iOS 4 from Mac OS, iPhone developers everywhere rejoiced. Unfortunately, as of iOS 4 none of the standard controls in UIKit support it. Bummer. TTTAttributedLabel was created to be a drop-in replacement for UILabel, that provided a simple API to styling text with NSAttributedString while remaining performant. As a bonus, it also supports link embedding, both automatically with UIDataDetectorTypes and manually by specifying a range for a URL, address, phone number, or event.
Uses AutoHyperlinks code from Adium http://code.google.com/p/maccode/wiki/AutoHyperlinks Project includes an example of how to use the core text view. It's pretty simple - create the view with a 0 height frame, set the attributes, set its text, and then ask it for it's size so that the height is just correct. It will calculate based on the constraining width, and any padding that you set. There is also a Twitter specific subclass that enables @usernames and #hashtags to be linkified. Settable Attributes: textAlignment textColor linkColor highlightedLinkColor fontName fontSize paddingTop paddingLeft backgroundImage bgImageTopStretchCap bgImageLeftStretchCap
This class allows you to use a UILabel with NSAttributedStrings, in order to display styled text with mixed style (mixed fonts, color, size, ...) in a unique label. It can also detect links, add custom links, use basic markup to create your NSAttributedStrings easily (instead of lots of lines of code), and much more. Use it as a drop-in replacement for any of your UILabel. Compatible with iOS4.3 and later.
This project aims to duplicate the methods present on Mac OSX which allow creation of NSAttributedString from HTML code on iOS. This is useful for drawing simple rich text like any HTML document without having to use a UIWebView. (Previously known as "NSAttributedString Additions for HTML")