How to set background color for selected text in text mode

How to set background color for selected text in text mode?

I am developing an application based on a text view and I need to change the color for the selected text.

I tried using delegate methods, but I did not find any properties like this. Can you suggest a way to overcome this problem?

+3
source share
2 answers

Solved problem using custom logic.

Using

  • (void) touchhesBegan: (NSSet *) concerns event: Event: (UIEvent *)

  • (void) touchesEnded: (NSSet *) concerns eventEvent: (UIEvent *)

, , tetx . ... XML / .

, , , exisitng XML. .

, .

0

AppStore. , , MobileNotes.app , , , , Apple .

, , UIView , .


( ), +[UIColor selectionTintColor] (, method_setImplementation, .).

0

Source: https://habr.com/ru/post/1730993/


All Articles