{"action":"created","issue":{"url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/746","repository_url":"https://api.github.com/repos/CoderMJLee/MJRefresh","labels_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/746/labels{/name}","comments_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/746/comments","events_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/746/events","html_url":"https://github.com/CoderMJLee/MJRefresh/issues/746","id":175659030,"number":746,"title":"[BUG] iOS10 奔溃 在英语环境","user":{"login":"12207480","id":6346030,"avatar_url":"https://avatars.githubusercontent.com/u/6346030?v=3","gravatar_id":"","url":"https://api.github.com/users/12207480","html_url":"https://github.com/12207480","followers_url":"https://api.github.com/users/12207480/followers","following_url":"https://api.github.com/users/12207480/following{/other_user}","gists_url":"https://api.github.com/users/12207480/gists{/gist_id}","starred_url":"https://api.github.com/users/12207480/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/12207480/subscriptions","organizations_url":"https://api.github.com/users/12207480/orgs","repos_url":"https://api.github.com/users/12207480/repos","events_url":"https://api.github.com/users/12207480/events{/privacy}","received_events_url":"https://api.github.com/users/12207480/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-09-08T03:50:47Z","updated_at":"2016-09-21T09:25:11Z","closed_at":null,"body":"Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSTaggedPointerString substringToIndex:]: Index 9223372036854775807 out of bounds; string length 2'\r\n*** First throw call stack:\r\n(\r\n\t0   CoreFoundation                      0x000000010413f34b __exceptionPreprocess + 171\r\n\t1   libobjc.A.dylib                     0x0000000107dbc21e objc_exception_throw + 48\r\n\t2   CoreFoundation                      0x00000001041a8265 +[NSException raise:format:] + 197\r\n\t3   Foundation                          0x0000000104c630a4 -[NSString substringToIndex:] + 118\r\n\t4   LovePlayNews                        0x00000001038b8565 -[MJRefreshComponent localizedStringForKey:withDefault:] + 357\r\n\t5   LovePlayNews                        0x00000001038b83cf -[MJRefreshComponent localizedStringForKey:] + 79\r\n\t6   LovePlayNews                        0x00000001038be491 -[MJRefreshStateHeader setLastUpdatedTimeKey:] + 1569\r\n\t7   LovePlayNews                        0x00000001038baf66 -[MJRefreshHeader prepare] + 86\r\n\t8   LovePlayNews                        0x00000001038be5e6 -[MJRefreshStateHeader prepare] + 54\r\n\t9   LovePlayNews                        0x00000001038b796f -[MJRefreshComponent initWithFrame:] + 159\r\n\t10  UIKit                               0x0000000105edb788 -[UIView init] + 62\r\n\t11  LovePlayNews                        0x00000001038baeaf +[MJRefreshHeader headerWithRefreshingTarget:refreshingAction:] + 95\r\n\t12  LovePlayNews                        0x0000000103694bea +[LPRefreshGifHeader headerWithRefreshingTarget:refreshingAction:] + 122\r\n\t13  LovePlayNews                        0x000000010369fdfc -[LPNewsListController addRefreshHeader] + 60\r\n\t14  LovePlayNews                        0x000000010369fa7c -[LPNewsListController viewDidLoad] + 92\r\n"},"comment":{"url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/comments/248558150","html_url":"https://github.com/CoderMJLee/MJRefresh/issues/746#issuecomment-248558150","issue_url":"https://api.github.com/repos/CoderMJLee/MJRefresh/issues/746","id":248558150,"user":{"login":"alenQingshan","id":15865625,"avatar_url":"https://avatars.githubusercontent.com/u/15865625?v=3","gravatar_id":"","url":"https://api.github.com/users/alenQingshan","html_url":"https://github.com/alenQingshan","followers_url":"https://api.github.com/users/alenQingshan/followers","following_url":"https://api.github.com/users/alenQingshan/following{/other_user}","gists_url":"https://api.github.com/users/alenQingshan/gists{/gist_id}","starred_url":"https://api.github.com/users/alenQingshan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alenQingshan/subscriptions","organizations_url":"https://api.github.com/users/alenQingshan/orgs","repos_url":"https://api.github.com/users/alenQingshan/repos","events_url":"https://api.github.com/users/alenQingshan/events{/privacy}","received_events_url":"https://api.github.com/users/alenQingshan/received_events","type":"User","site_admin":false},"created_at":"2016-09-21T09:25:11Z","updated_at":"2016-09-21T09:25:11Z","body":"if ([UIDevice currentDevice].systemVersion.floatValue >= 9.0&&[UIDevice currentDevice].systemVersion.floatValue < 10.0) {\r\n            NSRange range = [language rangeOfString:@\"-\" options:NSBackwardsSearch];\r\n            language = [language substringToIndex:range.location];\r\n        }\r\n        if ([UIDevice currentDevice].systemVersion.floatValue >= 10.0) {\r\n            language = [language substringToIndex:2];\r\n        }"}}
{"actor":{"display_login":"alenQingshan"}}