Skip to content
Browse files

implement -textInputView from UITextInput so that users of EGOTextVie…

…w can do the appropriate coordinate transforms for the values from methods like -caretRectForPosition:
  • Loading branch information...
1 parent 9dfde55 commit 4e128d4b710515c6ad0c16b3e19226db0f017ce8 @mikeash mikeash committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 EGOTextView/EGOTextView.m
View
4 EGOTextView/EGOTextView.m
@@ -1259,6 +1259,10 @@ - (CGRect)caretRectForPosition:(UITextPosition *)position {
return [self caretRectForIndex:pos.index];
}
+- (UIView *)textInputView {
+ return _textContentView;
+}
+
// MARK: UITextInput - Hit testing
- (UITextPosition*)closestPositionToPoint:(CGPoint)point {

0 comments on commit 4e128d4

Please sign in to comment.
Something went wrong with that request. Please try again.