{"action":"created","issue":{"url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/688","repository_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel","labels_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/688/labels{/name}","comments_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/688/comments","events_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/688/events","html_url":"https://github.com/TTTAttributedLabel/TTTAttributedLabel/issues/688","id":159333397,"number":688,"title":"Truncated Text is not clickable","user":{"login":"puneet-1106","id":19831825,"avatar_url":"https://avatars.githubusercontent.com/u/19831825?v=3","gravatar_id":"","url":"https://api.github.com/users/puneet-1106","html_url":"https://github.com/puneet-1106","followers_url":"https://api.github.com/users/puneet-1106/followers","following_url":"https://api.github.com/users/puneet-1106/following{/other_user}","gists_url":"https://api.github.com/users/puneet-1106/gists{/gist_id}","starred_url":"https://api.github.com/users/puneet-1106/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneet-1106/subscriptions","organizations_url":"https://api.github.com/users/puneet-1106/orgs","repos_url":"https://api.github.com/users/puneet-1106/repos","events_url":"https://api.github.com/users/puneet-1106/events{/privacy}","received_events_url":"https://api.github.com/users/puneet-1106/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-09T05:54:52Z","updated_at":"2016-07-26T08:05:39Z","closed_at":null,"body":"Hi Matt,\r\n\r\nI am using TTTAttributed label for text truncation with text \"...more\". But when i am trying to click it it is not clickable. Instead of this, the word before truncated text gets clicked. You can find the code below:\r\n\r\n\r\n            let truncatedStringColour = [\r\n                NSForegroundColorAttributeName: UIColor(red: 142.0/255.0, green: 59.0/255.0, blue: 84.0/255.0, alpha: 1.0),\r\n                NSFontAttributeName: UIFont(name: \"DINRoundOT\", size: 17.0)!,\r\n                NSLinkAttributeName : \"link\"]\r\n            \r\n            truncatedString = NSAttributedString(string: \"...more\", attributes: truncatedStringColour)\r\n            \r\n            cellIdentifier = \"DescriptionDetailViewCell\"\r\n            let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier, forIndexPath: indexPath) as! DescriptionDetailViewCell\r\n                    \r\n            //enabledTextCheckingTypes\r\n            \r\n            cell.lblDescription.enabledTextCheckingTypes = NSTextCheckingType.Link.rawValue\r\n            \r\n            cell.lblDescription.delegate = self\r\n            cell.lblDescription.attributedText = attrDescription!\r\n            \r\n    \r\n            \r\n            cell.lblDescription.delegate = self\r\n            cell.lblDescription.autoresizingMask =  UIViewAutoresizing.FlexibleWidth.union(UIViewAutoresizing.FlexibleHeight)\r\n            \r\n            if isNotTruncated\r\n            {\r\n                cell.lblDescription.numberOfLines = 0\r\n            }\r\n                \r\n            else\r\n            {\r\n\r\n                   if let truncatStr = truncatedString\r\n                {\r\n                        cell.lblDescription.attributedTruncationToken = truncatStr\r\n                    \r\n                 }\r\n                \r\n\r\n                    cell.lblDescription.numberOfLines = 10\r\n            }\r\n            \r\n\r\nPlease try to revert me back asap as i need it badly to get solved\r\n"},"comment":{"url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/comments/235192007","html_url":"https://github.com/TTTAttributedLabel/TTTAttributedLabel/issues/688#issuecomment-235192007","issue_url":"https://api.github.com/repos/TTTAttributedLabel/TTTAttributedLabel/issues/688","id":235192007,"user":{"login":"buiminhhuy","id":568664,"avatar_url":"https://avatars.githubusercontent.com/u/568664?v=3","gravatar_id":"","url":"https://api.github.com/users/buiminhhuy","html_url":"https://github.com/buiminhhuy","followers_url":"https://api.github.com/users/buiminhhuy/followers","following_url":"https://api.github.com/users/buiminhhuy/following{/other_user}","gists_url":"https://api.github.com/users/buiminhhuy/gists{/gist_id}","starred_url":"https://api.github.com/users/buiminhhuy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buiminhhuy/subscriptions","organizations_url":"https://api.github.com/users/buiminhhuy/orgs","repos_url":"https://api.github.com/users/buiminhhuy/repos","events_url":"https://api.github.com/users/buiminhhuy/events{/privacy}","received_events_url":"https://api.github.com/users/buiminhhuy/received_events","type":"User","site_admin":false},"created_at":"2016-07-26T08:05:39Z","updated_at":"2016-07-26T08:05:39Z","body":"I forked to new repository https://github.com/buiminhhuy/TTTAttributedLabel"}}
{"actor":{"display_login":"buiminhhuy"}}