|
Saturday, 27 February 2010 12:08 |
|
Phitext, the first rich text view for the iPad, is available for beta testers. The framework is specially packaged for Xcode and includes the following classes:
- PhiTextEditorView, implementing the UITextInputView protocol, this class is the main view that interacts with your application. It can be embedded into a UIScrollView or be a fixed size text area. PhiTextEditorView is responsible for the NSAttributedString and also includes many gesture recognisers to modify text selection.
- PhiTextView, is a subview of PhiTextEditorView, and uses Core Text to render text and is responsible for determining the view's geometry and provides hit testing mechanisms to PhiTextEditorView.
- PhiTextMagnifier, replicates the appearance and behaviour of the text magnifier of UITextView. Future updates will allow you to plugin your own magnifier to give your application it's distinctive appearance.
- PhiTextSelectionView handles user interaction to modify the selected text of PhiTextEditorView. Two colors are blended with the text to ensure that the selected range is always apparent regardless of the color of the text or background.
The most requested feature is a system to manage the RTF file format, but there are many directions that Phitext could evolve. Phiware is looking for beta testers and is open to all suggestions.
|