{"action":"created","issue":{"url":"https://api.github.com/repos/Mozharovsky/CVCalendar/issues/50","labels_url":"https://api.github.com/repos/Mozharovsky/CVCalendar/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/Mozharovsky/CVCalendar/issues/50/comments","events_url":"https://api.github.com/repos/Mozharovsky/CVCalendar/issues/50/events","html_url":"https://github.com/Mozharovsky/CVCalendar/issues/50","id":70007970,"number":50,"title":"Crashes on iOS 7","user":{"login":"gnrsenpai","id":6711621,"avatar_url":"https://avatars.githubusercontent.com/u/6711621?v=3","gravatar_id":"","url":"https://api.github.com/users/gnrsenpai","html_url":"https://github.com/gnrsenpai","followers_url":"https://api.github.com/users/gnrsenpai/followers","following_url":"https://api.github.com/users/gnrsenpai/following{/other_user}","gists_url":"https://api.github.com/users/gnrsenpai/gists{/gist_id}","starred_url":"https://api.github.com/users/gnrsenpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnrsenpai/subscriptions","organizations_url":"https://api.github.com/users/gnrsenpai/orgs","repos_url":"https://api.github.com/users/gnrsenpai/repos","events_url":"https://api.github.com/users/gnrsenpai/events{/privacy}","received_events_url":"https://api.github.com/users/gnrsenpai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Mozharovsky/CVCalendar/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/Mozharovsky/CVCalendar/labels/duplicate","name":"duplicate","color":"cccccc"}],"state":"closed","locked":false,"assignee":{"login":"Mozharovsky","id":6762769,"avatar_url":"https://avatars.githubusercontent.com/u/6762769?v=3","gravatar_id":"","url":"https://api.github.com/users/Mozharovsky","html_url":"https://github.com/Mozharovsky","followers_url":"https://api.github.com/users/Mozharovsky/followers","following_url":"https://api.github.com/users/Mozharovsky/following{/other_user}","gists_url":"https://api.github.com/users/Mozharovsky/gists{/gist_id}","starred_url":"https://api.github.com/users/Mozharovsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mozharovsky/subscriptions","organizations_url":"https://api.github.com/users/Mozharovsky/orgs","repos_url":"https://api.github.com/users/Mozharovsky/repos","events_url":"https://api.github.com/users/Mozharovsky/events{/privacy}","received_events_url":"https://api.github.com/users/Mozharovsky/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-04-22T03:04:21Z","updated_at":"2015-08-28T16:16:48Z","closed_at":"2015-08-28T14:19:11Z","body":"Hello and thanks for the calendar component, it's the best i've found for iOS devices.\r\n\r\nThis component is working properly when i run it on iOS 8 simulator, however, when i try to execute it on my iPod touch with iOS 7 it crashes on the line where it multiplies the value of countOfWeeks * 7. I did notice that on the method monthDateRange (within CVCalendarManager.swift), the value for the range of the month equals to this on iOS 7: range = Optional((2147483647,2147483647)), the strange thing is that on iOS 8 the value is often between 18 and 6. The crash actually happens because the int variable cannot store a number that large.\r\n\r\nBefore this problem i had another where it crashed setting the value for the calendar variable, again only on iOS 7 and not iOS 8, so i had to change from:\r\nself.calendar = NSCalendar(identifier: NSCalendarIdentifierGregorian)\r\n\r\nto this declaration:\r\nself.calendar = NSCalendar(calendarIdentifier: NSGregorianCalendar)"},"comment":{"url":"https://api.github.com/repos/Mozharovsky/CVCalendar/issues/comments/135822804","html_url":"https://github.com/Mozharovsky/CVCalendar/issues/50#issuecomment-135822804","issue_url":"https://api.github.com/repos/Mozharovsky/CVCalendar/issues/50","id":135822804,"user":{"login":"gnrsenpai","id":6711621,"avatar_url":"https://avatars.githubusercontent.com/u/6711621?v=3","gravatar_id":"","url":"https://api.github.com/users/gnrsenpai","html_url":"https://github.com/gnrsenpai","followers_url":"https://api.github.com/users/gnrsenpai/followers","following_url":"https://api.github.com/users/gnrsenpai/following{/other_user}","gists_url":"https://api.github.com/users/gnrsenpai/gists{/gist_id}","starred_url":"https://api.github.com/users/gnrsenpai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnrsenpai/subscriptions","organizations_url":"https://api.github.com/users/gnrsenpai/orgs","repos_url":"https://api.github.com/users/gnrsenpai/repos","events_url":"https://api.github.com/users/gnrsenpai/events{/privacy}","received_events_url":"https://api.github.com/users/gnrsenpai/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T16:16:48Z","updated_at":"2015-08-28T16:16:48Z","body":"i've actually modified a few lines of the library code to make it work on iOS 7, it isn't hard, the NSCalendar variable, for example, has to be initialized with other parameters on iOS 7"}}