Al hacer clic en NSURL en un UITextView

tengo unUITextView que abarca 100.0 puntos en miUIView.

En elUITextView, Tengo enlaces que se capturan con la siguiente función:

- (BOOL) textView:(UITextView *)textView shouldInteractWithURL:(NSURL *)URL inRange:(NSRange)characterRange

Esto funciona muy bien para capturar ciertos caracteres, pero tengo un problema: si el enlace son los últimos caracteres en la vista de texto, el toque se presionará en toda esa línea.

Entonces, si tengo la vista de texto con el siguiente texto donde @test es el enlace:

// The entire remainder of the line will be the link (all the white space after @test)
Hello @test

¿Cómo puedo solucionar esto?

Respuestas a la pregunta(3)

Su respuesta a la pregunta