https://github.com/rushisangani/rsworddetectortextview
Get Clicked/Tapped word by user in UITextView
https://github.com/rushisangani/rsworddetectortextview
Last synced: 7 months ago
JSON representation
Get Clicked/Tapped word by user in UITextView
- Host: GitHub
- URL: https://github.com/rushisangani/rsworddetectortextview
- Owner: rushisangani
- License: mit
- Created: 2016-06-12T15:48:41.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-06-12T19:06:41.000Z (over 9 years ago)
- Last Synced: 2025-01-20T09:26:07.752Z (9 months ago)
- Language: Objective-C
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RSWordDetectorTextView
The convinient class to get **clicked/tapped** word by user in **UITextView**.
## Features
- Get user clicked text in UITextView using delegate method.
## How To Use
### RSWordDetectorTextView
```objective-c
/* set delegate */self.textView.wordDetectorDelegate = self;
#pragma mark- RSWordDetectorDelegate method
-(void)textView:(UITextView *)textView didTappedWord:(NSString *)word {
NSLog(@"Tapped word: %@", word);
}```
## License
RSWordDetectorTextView is released under the MIT license. See LICENSE for details.