{"action":"created","issue":{"url":"https://api.github.com/repos/cbpowell/MarqueeLabel/issues/160","repository_url":"https://api.github.com/repos/cbpowell/MarqueeLabel","labels_url":"https://api.github.com/repos/cbpowell/MarqueeLabel/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/cbpowell/MarqueeLabel/issues/160/comments","events_url":"https://api.github.com/repos/cbpowell/MarqueeLabel/issues/160/events","html_url":"https://github.com/cbpowell/MarqueeLabel/issues/160","id":177540775,"number":160,"title":"EXC_BAD_ACCESS error while assigning text","user":{"login":"XGProyect","id":3051274,"avatar_url":"https://avatars.githubusercontent.com/u/3051274?v=3","gravatar_id":"","url":"https://api.github.com/users/XGProyect","html_url":"https://github.com/XGProyect","followers_url":"https://api.github.com/users/XGProyect/followers","following_url":"https://api.github.com/users/XGProyect/following{/other_user}","gists_url":"https://api.github.com/users/XGProyect/gists{/gist_id}","starred_url":"https://api.github.com/users/XGProyect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XGProyect/subscriptions","organizations_url":"https://api.github.com/users/XGProyect/orgs","repos_url":"https://api.github.com/users/XGProyect/repos","events_url":"https://api.github.com/users/XGProyect/events{/privacy}","received_events_url":"https://api.github.com/users/XGProyect/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-16T23:36:22Z","updated_at":"2016-09-22T19:24:25Z","closed_at":"2016-09-17T02:56:46Z","body":"I've implemented MarqueeLabel.swift (Swift 3), and I'm getting **Thread 1: EXC_BAD_ACCESS (code=2 address=0xa60ea8)** when I try to pass a text to the label text. For ex.:\r\n\r\n```\r\n//definition\r\n@IBOutlet weak var status: MarqueeLabel!\r\n\r\nself.status.text = status.localized\r\n```\r\n\r\nIf I do alt over **self.status.text** it says:\r\n\r\n**override open var text: String? { get set }\r\nDeclared In\tMarqueeLabel.swift**\r\n\r\nAnd If I do alt over **status.localized** it says:\r\n\r\n**var localized: String { get }\r\nDeclared In\tStringExtensions.swift**\r\n\r\nAnd of course the label status is a MarqueeLabel class.\r\n\r\nI dunno if this helps, but in my console I'm seeing also this error:\r\n\r\n_\"Unknown class MarqueeLabel in Interface Builder file.\"_\r\n\r\n**This used to work with the Obj-C version.**"},"comment":{"url":"https://api.github.com/repos/cbpowell/MarqueeLabel/issues/comments/249003034","html_url":"https://github.com/cbpowell/MarqueeLabel/issues/160#issuecomment-249003034","issue_url":"https://api.github.com/repos/cbpowell/MarqueeLabel/issues/160","id":249003034,"user":{"login":"XGProyect","id":3051274,"avatar_url":"https://avatars.githubusercontent.com/u/3051274?v=3","gravatar_id":"","url":"https://api.github.com/users/XGProyect","html_url":"https://github.com/XGProyect","followers_url":"https://api.github.com/users/XGProyect/followers","following_url":"https://api.github.com/users/XGProyect/following{/other_user}","gists_url":"https://api.github.com/users/XGProyect/gists{/gist_id}","starred_url":"https://api.github.com/users/XGProyect/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XGProyect/subscriptions","organizations_url":"https://api.github.com/users/XGProyect/orgs","repos_url":"https://api.github.com/users/XGProyect/repos","events_url":"https://api.github.com/users/XGProyect/events{/privacy}","received_events_url":"https://api.github.com/users/XGProyect/received_events","type":"User","site_admin":false},"created_at":"2016-09-22T19:24:25Z","updated_at":"2016-09-22T19:24:25Z","body":"Actually I was doing something like this:\r\n\r\n```\r\nself.status.text = status.localized\r\n\r\nif self.status.awayFromHome != false {\r\n    self.status.text = status.localized + \" | \"\r\n}\r\n```\r\n\r\nBut the pipe is never added, because awayFromHome always returns false. :/"}}
{"actor":{"display_login":"XGProyect"}}