2012-03-18 22 views
8

我一直在爲一個iOS項目玩EGOTextView,並且已經能夠完成一些非常基本的編輯。它如何插入到UITextView的位置真的很酷。但是現在我擔心我不能正確理解如何完全使用。是否有人知道使用EGOTextView進行富文本編輯的示例?EGOTextView示例

+0

同樣的事情給我。我在他的演示中找不到任何區別 – Jacky 2013-02-05 08:37:18

+0

你可以聯繫這個,已經在git Repo上提及。 如果您需要EGOTextView的幫助,請隨時聯繫[email protected]。 – 2013-05-17 05:51:40

回答

1

你可以叫EGOTextView這些方法

  • (無效)setfont程序:(UIFont *)字體
  • (無效)的setText:(的NSString *)文本
  • (無效)setAttributedString:(NSAttributedString *)串
  • (無效)setEditable:(BOOL)可編輯
  • (無效)drawContentInRect:(的CGRect)RECT
  • (NSInteger的)closestWhiteSpaceIndexToPoint:(CGPoint)p oint
  • (NSInteger的)closestIndexToPoint:(CGPoint)點
  • (NSRange)characterRangeAtPoint _ :(CGPoint)點
  • (NSRange)characterRangeAtIndex:(NSInteger的)索引
  • (無效)setCorrectionRange:(NSRange)範圍
  • (無效)setLinkRange:(NSRange)範圍
  • (的UIColor *)selectionColor設置
  • (UITextPosition *)positionFromPosition:(UITextPosition *)位置偏移量:(NSInteger的)偏移
  • (無效)deleteBackward
  • (無效)checkLinksForRange:(NSRange)範圍
  • (無效)checkSpellingForRange:(NSRange)範圍
  • (無效)長按:(UILongPressGestureRecognizer *)手勢
  • (無效)doubleTap: (UITapGestureRecognizer *)手勢
  • (無效)spellingCorrection:(UIMenuController *)發件人

根據您的需要,還有更多的方法調用依然存在。