Kumar sonu
Kumar sonu

Reputation: 535

Make pdf reader like functionality in my app (highlight the content)

I need a functionality like in the iphone pdf reader.

i want that user select some text content and that content should be highlighted with yellow color.

Currently i am using text view and want to know that can i achieve same functionality in it. or i have to shift to pdf ?

Please tell that how to achieve that in either of the two.

Upvotes: 1

Views: 332

Answers (2)

Swapnil Luktuke
Swapnil Luktuke

Reputation: 10475

You can try NSAttributedString-Additions-for-HTML

Upvotes: 2

user814037
user814037

Reputation:

Take a look at EGOTextView

A drop-in replacement for UITextView that amongst other things supports attributed strings. This would allow you to achieve your aim of selecting text, and then applying a style to that selection such as a yellow highlight.

Upvotes: 0

Related Questions