{"action":"created","issue":{"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/118","repository_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar","labels_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/118/labels{/name}","comments_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/118/comments","events_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/118/events","html_url":"https://github.com/patchthecode/JTAppleCalendar/issues/118","id":172792418,"number":118,"title":"Issue Setting Background in setupCellBeforeDisplay from CloudKit","user":{"login":"jfo713","id":19805456,"avatar_url":"https://avatars.githubusercontent.com/u/19805456?v=3","gravatar_id":"","url":"https://api.github.com/users/jfo713","html_url":"https://github.com/jfo713","followers_url":"https://api.github.com/users/jfo713/followers","following_url":"https://api.github.com/users/jfo713/following{/other_user}","gists_url":"https://api.github.com/users/jfo713/gists{/gist_id}","starred_url":"https://api.github.com/users/jfo713/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfo713/subscriptions","organizations_url":"https://api.github.com/users/jfo713/orgs","repos_url":"https://api.github.com/users/jfo713/repos","events_url":"https://api.github.com/users/jfo713/events{/privacy}","received_events_url":"https://api.github.com/users/jfo713/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"patchthecode","id":2439146,"avatar_url":"https://avatars.githubusercontent.com/u/2439146?v=3","gravatar_id":"","url":"https://api.github.com/users/patchthecode","html_url":"https://github.com/patchthecode","followers_url":"https://api.github.com/users/patchthecode/followers","following_url":"https://api.github.com/users/patchthecode/following{/other_user}","gists_url":"https://api.github.com/users/patchthecode/gists{/gist_id}","starred_url":"https://api.github.com/users/patchthecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patchthecode/subscriptions","organizations_url":"https://api.github.com/users/patchthecode/orgs","repos_url":"https://api.github.com/users/patchthecode/repos","events_url":"https://api.github.com/users/patchthecode/events{/privacy}","received_events_url":"https://api.github.com/users/patchthecode/received_events","type":"User","site_admin":false},"assignees":[{"login":"patchthecode","id":2439146,"avatar_url":"https://avatars.githubusercontent.com/u/2439146?v=3","gravatar_id":"","url":"https://api.github.com/users/patchthecode","html_url":"https://github.com/patchthecode","followers_url":"https://api.github.com/users/patchthecode/followers","following_url":"https://api.github.com/users/patchthecode/following{/other_user}","gists_url":"https://api.github.com/users/patchthecode/gists{/gist_id}","starred_url":"https://api.github.com/users/patchthecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patchthecode/subscriptions","organizations_url":"https://api.github.com/users/patchthecode/orgs","repos_url":"https://api.github.com/users/patchthecode/repos","events_url":"https://api.github.com/users/patchthecode/events{/privacy}","received_events_url":"https://api.github.com/users/patchthecode/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-08-23T20:01:11Z","updated_at":"2016-08-24T16:45:42Z","closed_at":null,"body":"There's probably a simple solution to this - I'm a pretty new developer.\r\n\r\nI'm trying to set my cell background color by syncing it with CloudKit - I have 3 different types of dates in my CloudKit record, and have written a function to sort them into 3 different arrays of [NSDate]. Then in a separate function, cellState.date == an object in one of the arrays, it will set the appropriate background color. It works correctly the first time the calendarView loads, but then when I scroll to the next month, it begins coloring cells that don't have dates in the CloudKit array, and will keep doing that when I scroll back to the initial month. Screenshots below (first 'August' is correct, September and second August aren't). Also shots of my code - `func configureBackgroundColor` gets called inside of `func populateClasses(cellState)`, and `func populateClasses(cellState)` is called inside of `setupCellBeforeDisplay`. I think I've just misunderstood how the calendarView implements the cellView...\r\n\r\nI really appreciate any help you can give me, and definitely want to say thanks for making this awesome library! I'm really loving it!\r\n<img width=\"381\" alt=\"screen shot 2016-08-23 at 2 28 02 pm\" src=\"https://cloud.githubusercontent.com/assets/19805456/17907614/608529f8-6942-11e6-8d3d-b049c5f3eede.png\">\r\n<img width=\"377\" alt=\"screen shot 2016-08-23 at 2 28 16 pm\" src=\"https://cloud.githubusercontent.com/assets/19805456/17907619/60a31314-6942-11e6-847b-1cd75250cbea.png\">\r\n<img width=\"377\" alt=\"screen shot 2016-08-23 at 2 28 27 pm\" src=\"https://cloud.githubusercontent.com/assets/19805456/17907616/609db9be-6942-11e6-8d1a-5d6f72f7963e.png\">\r\n<img width=\"379\" alt=\"screen shot 2016-08-23 at 2 28 38 pm\" src=\"https://cloud.githubusercontent.com/assets/19805456/17907615/609c75c2-6942-11e6-9932-18617dfe97fc.png\">\r\n<img width=\"710\" alt=\"screen shot 2016-08-23 at 2 33 51 pm\" src=\"https://cloud.githubusercontent.com/assets/19805456/17907618/60a20366-6942-11e6-9226-2f017f36a0ec.png\">\r\n<img width=\"424\" alt=\"screen shot 2016-08-23 at 2 34 13 pm\" src=\"https://cloud.githubusercontent.com/assets/19805456/17907617/609f8d3e-6942-11e6-8541-7e972b8a362a.png\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/comments/242132248","html_url":"https://github.com/patchthecode/JTAppleCalendar/issues/118#issuecomment-242132248","issue_url":"https://api.github.com/repos/patchthecode/JTAppleCalendar/issues/118","id":242132248,"user":{"login":"patchthecode","id":2439146,"avatar_url":"https://avatars.githubusercontent.com/u/2439146?v=3","gravatar_id":"","url":"https://api.github.com/users/patchthecode","html_url":"https://github.com/patchthecode","followers_url":"https://api.github.com/users/patchthecode/followers","following_url":"https://api.github.com/users/patchthecode/following{/other_user}","gists_url":"https://api.github.com/users/patchthecode/gists{/gist_id}","starred_url":"https://api.github.com/users/patchthecode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patchthecode/subscriptions","organizations_url":"https://api.github.com/users/patchthecode/orgs","repos_url":"https://api.github.com/users/patchthecode/repos","events_url":"https://api.github.com/users/patchthecode/events{/privacy}","received_events_url":"https://api.github.com/users/patchthecode/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T16:45:41Z","updated_at":"2016-08-24T16:45:41Z","body":"Can you let me know what you are trying to do?\r\nI do not think you have access to that identifier.\r\nyou can join me [here](https://gitter.im/patchthecode/JTAppleCalendar) if youre online."}}
{"actor":{"display_login":"patchthecode"}}