Reputation: 900
I need to highlight text in epub book,when user selects the text,i can get the text,what the user has selected,but i need to highlight,the text permanently what user selected,thanks,any help will ne appreciated.
Upvotes: 1
Views: 2228
Reputation: 17861
There's nothing built in to iOS that will do this. Some broad techniques that might work:
span
and style it to create a highlight.As for adding highlight-related items to the selection menu, see this Stack Overflow post. You probably won't be able to get icons in the menu like Apple does, though; that seems to be a private API. You could probably override the whole menu system if you want something closer to Apple's look, but that'll be quite a bit of work.
Upvotes: 1