{"action":"closed","issue":{"url":"https://api.github.com/repos/matej/MBProgressHUD/issues/80","repository_url":"https://api.github.com/repos/matej/MBProgressHUD","labels_url":"https://api.github.com/repos/matej/MBProgressHUD/issues/80/labels{/name}","comments_url":"https://api.github.com/repos/matej/MBProgressHUD/issues/80/comments","events_url":"https://api.github.com/repos/matej/MBProgressHUD/issues/80/events","html_url":"https://github.com/matej/MBProgressHUD/issues/80","id":169704811,"number":80,"title":"Unable to set label text","user":{"login":"tbeech","id":796007,"avatar_url":"https://avatars.githubusercontent.com/u/796007?v=3","gravatar_id":"","url":"https://api.github.com/users/tbeech","html_url":"https://github.com/tbeech","followers_url":"https://api.github.com/users/tbeech/followers","following_url":"https://api.github.com/users/tbeech/following{/other_user}","gists_url":"https://api.github.com/users/tbeech/gists{/gist_id}","starred_url":"https://api.github.com/users/tbeech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbeech/subscriptions","organizations_url":"https://api.github.com/users/tbeech/orgs","repos_url":"https://api.github.com/users/tbeech/repos","events_url":"https://api.github.com/users/tbeech/events{/privacy}","received_events_url":"https://api.github.com/users/tbeech/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-05T22:01:13Z","updated_at":"2016-08-08T00:38:15Z","closed_at":"2016-08-08T00:38:15Z","body":"I have the following code in my app:\r\n\r\n`\r\ndispatch_async(dispatch_get_main_queue(), ^{\r\n    MBProgressHUD *hud = [MBProgressHUD HUDForView:self.view];\r\n    hud.label.text = @\"Authenticating\";\r\n    [hud showAnimated:YES];\r\n});\r\n`\r\n\r\nWhich results in the following:\r\n*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MBProgressHUD label]: unrecognized selector sent to instance 0x7fa0d33f00b0'\r\n\r\nI recently upgraded to v1.0 and previously my code was re-using a single hud and would show/hide and update the label text appropriately. After updating to v1.0 I can't for the life of me get this to work. I've even tried changing the way I was accessing the reusable hud from self.hud to what you see in the above code snippet.\r\n\r\nIt seems the only way I can get the label text to work is to use the deprecated `labelText` approach."}}
{"actor":{"display_login":"tbeech"}}