Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var attributedString = NSMutableAttributedString()
- attributedString = NSMutableAttributedString(string:(data.detailsNoti?.fullName)!, attributes: strres)
- let startedfollowing = NSMutableAttributedString(string:" has started following ", attributes: attrs)
- attributedString.append(startedfollowing)
- var discription = NSMutableAttributedString()
- if data.fullName == ""{
- discription = NSMutableAttributedString(string:"((data.userName)!)", attributes: strres)
- }else{
- discription = NSMutableAttributedString(string:"((data.fullName)!)", attributes: strres)
- }
- print(discription.string.count)
- discription.addAttribute(NSAttributedString.Key.link, value: #selector(moveToProfile), range: NSRange(location: 0, length: discription.string.count))
- attributedString.append(discription)
- @objc func moveToProfile(){
- print("jkr rhvb ve vb iu viure")
- }
Add Comment
Please, Sign In to add comment