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

crash after setLinkTarget #44

Closed
nealzxc opened this issue Apr 26, 2014 · 2 comments
Closed

crash after setLinkTarget #44

nealzxc opened this issue Apr 26, 2014 · 2 comments

Comments

@nealzxc
Copy link

nealzxc commented Apr 26, 2014

setLinkTarget not stable enough,crash on :
function : extractLinkMeta

CGFloat startOffsetX = CTLineGetOffsetForStringIndex(line, linkStart, NULL) / CC_CONTENT_SCALE_FACTOR();

EXC_BAD_ACCESS

Even Just Use Link Tag Will Crash On IOS.

Just Test With: [link bg=3f7f7f7f bg_click=9fffff00]显示[/link]

Crash, Not Crash,Crash,Not Crash,I am crazy....

@zcgit
Copy link
Contributor

zcgit commented Apr 26, 2014

maybe you should change to [link bg=0x3f7f7f7f bg_click=0x9fffff00]显示[/link]

@stubma
Copy link
Owner

stubma commented Apr 27, 2014

thanks, a bug only when there is one line and one link tag. fixed

@stubma stubma closed this as completed in 7a77cd0 Apr 27, 2014
stubma added a commit that referenced this issue Apr 27, 2014
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