• Stars
    star
    6,343
  • Rank 6,288 (Top 0.2 %)
  • Language
    Objective-C
  • License
    BSD 2-Clause "Sim...
  • Created almost 14 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Methods to allow using HTML code with CoreText

DTCoreText

This project aims to duplicate the methods present on Mac OSX which allow creation of NSAttributedString from HTML code on iOS.

The project covers two broad areas:

  1. Layouting - Interfacing with CoreText, generating attributed strings from HTML code
  2. User Interface - UI-related classes render these objects, specifically DTAttributedTextView, DTAttributedLabel and DTAttributedTextCell.

This is useful for drawing simple rich text like any HTML document without having to use a web view. For text selection and highlighting (as you might need for an Editor or Reader) there is the commercial DTRichTextEditor component which can be purchased in the Cocoanetics Parts Store.

Documentation

Documentation can be browsed online or installed in your Xcode Organizer via the Atom Feed URL.

A Q&A answers some frequently asked questions.

Changelog: GitHub Releases

There is also a Programming Guide with a set of solutions to common problems.

Follow @cocoanetics on Twitter or subscribe to the Cocoanetics Blog for news and updates.

License

It is open source and covered by a standard 2-clause BSD license. That means you have to mention Cocoanetics as the original author of this code and reproduce the LICENSE text inside your app.

You can purchase a Non-Attribution-License for 75 Euros for not having to include the LICENSE text.

We also accept sponsorship for specific enhancements which you might need. Please contact us via email for inquiries.

More Repositories

1

DTFoundation

Standard toolset classes and categories
Objective-C
802
star
2

DTRichTextEditor

A rich-text editor for iOS
Objective-C
354
star
3

DTBonjour

Framework for Communicating over Bonjour+Wifi
Objective-C
340
star
4

Kvitto

App Store Receipt Validation
Swift
295
star
5

Examples

Sample projects that usually go with a blog post
Objective-C
213
star
6

DTMarkdownParser

An event-based parser for markdown text
Objective-C
197
star
7

DTLocalizableStringScanner

An open source substitute for Apple's genstrings which can be integrated in Apps.
Objective-C
109
star
8

DTWebArchive

A lightweight class to allow interaction with the WebArchive Pasteboard type used by Apple's iOS apps
Objective-C
107
star
9

BarCodeKit

A modern framework for generating 1D barcodes
Objective-C
87
star
10

AutoIngest

Automatic Sales Report Downloader for Mac
Objective-C
86
star
11

DTITCReportDownloader

A rewrite of Apple's Autoingest.java in Objective-C
Objective-C
81
star
12

DTDownload

File Downloading, Caching and Queueing
Objective-C
80
star
13

Swift-Examples

Cocoanetics Swift Examples
Swift
66
star
14

RadarSamples

Samples For Demonstrating Bug Reports
Objective-C
49
star
15

NSTimeZone-Localization

Providing a localized translation for the geopolitical names in the NSTimeZone class.
Objective-C
39
star
16

DTLoupe

Reimplementation of the iOS magnifying glass
Objective-C
38
star
17

DTKeychain

A simple and modern keychain wrapper
Objective-C
30
star
18

DTOAuth

A Simple OAuth Client
Objective-C
27
star
19

DTPDF

DTPDF
Objective-C
27
star
20

POEditorAPI

An API and Command-line Tool for POEditor.com
Swift
16
star
21

Ruby

Collection of my Ruby Scripts
Ruby
15
star
22

XLIFFix

Utility for recreating strings file from XLIFF
Swift
13
star
23

Barcodes_with_iOS

Sample Source Code for the Book "Barcodes with iOS" published by Manning
Objective-C
13
star
24

DTMorseKeyboard

A custom inputView that accepts Morse Code
Objective-C
12
star
25

DTXMLRPC

Wrapper for XML-RPC APIs
Objective-C
11
star
26

Pebble

Pebble Projects
C
8
star
27

GradleHelpers

1
star