{"action":"reopened","issue":{"url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/1153","labels_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/1153/labels{/name}","comments_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/1153/comments","events_url":"https://api.github.com/repos/cocos2d/cocos2d-swift/issues/1153/events","html_url":"https://github.com/cocos2d/cocos2d-swift/issues/1153","id":53733407,"number":1153,"title":"[iOS] Attributed String does not work in CCLabelTTF","user":{"login":"Zammy","id":348321,"avatar_url":"https://avatars.githubusercontent.com/u/348321?v=3","gravatar_id":"","url":"https://api.github.com/users/Zammy","html_url":"https://github.com/Zammy","followers_url":"https://api.github.com/users/Zammy/followers","following_url":"https://api.github.com/users/Zammy/following{/other_user}","gists_url":"https://api.github.com/users/Zammy/gists{/gist_id}","starred_url":"https://api.github.com/users/Zammy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zammy/subscriptions","organizations_url":"https://api.github.com/users/Zammy/orgs","repos_url":"https://api.github.com/users/Zammy/repos","events_url":"https://api.github.com/users/Zammy/events{/privacy}","received_events_url":"https://api.github.com/users/Zammy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-08T10:05:35Z","updated_at":"2015-01-08T10:05:56Z","closed_at":null,"body":"[SpriteBuilder 1.3.6, Cocos2D-Swift version 3.3.0-develop]\r\n\r\nI have not manage to get CCLabelTTF to work with attributedString.\r\nIf you create a starting project with SpriteBuilder. Add Code Connection from the label and add label property in MainScene. Run this code:\r\n```\r\n    NSMutableAttributedString * attributedString = [[NSMutableAttributedString alloc] initWithString:@\"Hello\"];\r\n    [attributedString addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0,2)];\r\n    self.label.attributedString = attributedString;\r\n```\r\nWhat is expected is \"He\" to become red. What happens is a crash. \r\n\r\nI can post more details but I believe everyone will be able to reproduce this.\r\n\r\n"}}