Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline links #5

Open
epologee opened this issue May 21, 2011 · 3 comments
Open

Multiline links #5

epologee opened this issue May 21, 2011 · 3 comments

Comments

@epologee
Copy link
Contributor

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.

@honcheng
Copy link
Owner

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?

@frank19900731
Copy link

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants