RTLabel icon indicating copy to clipboard operation
RTLabel copied to clipboard

Multiline links

Open epologee opened this issue 14 years ago • 3 comments

Heya, I've been playing around with the RTLabel, and I'm having a few troubles involving multiline links. Firstly, the optimumSize seems to not compute correctly if a link spans multiple lines, and also the hit testing when tapping links does not work below the first line of the link.

Have you encountered this before? Would you know how to make a workaround?

Cheers, Eric-Paul.

epologee avatar May 21 '11 23:05 epologee

Hi, I am not able to reproduce the problem. I've update the code with a table view to show list of features. Height of each cell is determine by the text height. There is a cell that I put multiple links. Can you try to reproduce the problem there? If you can reproduce it with the text that you have, can you send the text to me?

honcheng avatar May 22 '11 01:05 honcheng

I've met with the same problem that links below the first line is not clickable. Could you please tell me how you solved this problem?

frank19900731 avatar Dec 05 '13 14:12 frank19900731

OK. I've solved the problem by changing from [self.contentView addSubviews:subview1] to [self addSubviews:subview1]. Here self refers to a tableview cell, while subview1 refers to a view that contains RTLabel objects. By the way, I program in ARC mode.

frank19900731 avatar Dec 05 '13 14:12 frank19900731