Safari uses the WebKit class WebArchive to transfer rich data from e.g. Safari. This project aims to give you the capability of accepting such pasteboard data in your apps. WebArchive and the related WebRessource classes are tightly coubled with WebKit and private. This project is a reverse-engineered class giving you the same functionality on iOS.
For example you could allow your users to copy something from a web page and paste it into your app preserving the formatting.
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:
- Layouting – Interfacing with CoreText, generating attributed strings from HTML code
- 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 UIWebView. 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.
DTLoupeView is closely resembling the original Loupe (aka Magnifier) that you see whenever you long press on something that can be selected. Since there is no public API to get the built-in functionality we had to developed DTLoupeView for use in DTRichTextEditor, our Rich-Text-Editor component.
We realize that you might have your own rich text editing view or might not even want to use this Loupe for simply editing text. The loupe is also of great use if you want to give your users an metaphor of selecting something on screen that they are familiar with.
You have AdMob ads in your apps? Wondering if you could make a bit more money if you also had iAds were available?
DTBannerManager solves this problem for you. It allows for easily adding both networks to your code. Under iOS 4 it will first try to get an iAd because those also pay for just being displayed. If none is available then it automatically switches to AdMob, so your banner space is never wasted.
It also features elegant sliding in and out of the banners and is able to display ad banners even over a tab bar controller, so they are always visible for maximum effect.