{"action":"created","issue":{"url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/139","repository_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout","labels_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/139/comments","events_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/139/events","html_url":"https://github.com/chiahsien/CHTCollectionViewWaterfallLayout/issues/139","id":162076108,"number":139,"title":"does not work when auto layout turn on","user":{"login":"edwardyue","id":17318227,"avatar_url":"https://avatars.githubusercontent.com/u/17318227?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardyue","html_url":"https://github.com/edwardyue","followers_url":"https://api.github.com/users/edwardyue/followers","following_url":"https://api.github.com/users/edwardyue/following{/other_user}","gists_url":"https://api.github.com/users/edwardyue/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardyue/subscriptions","organizations_url":"https://api.github.com/users/edwardyue/orgs","repos_url":"https://api.github.com/users/edwardyue/repos","events_url":"https://api.github.com/users/edwardyue/events{/privacy}","received_events_url":"https://api.github.com/users/edwardyue/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-06-24T04:58:13Z","updated_at":"2016-06-24T14:36:30Z","closed_at":null,"body":"Hi team,\r\n\r\nThe cell looks weird after turn on the Autolayout. I am using objective -C one. Could you help?\r\n\r\nthanks!"},"comment":{"url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/comments/228363085","html_url":"https://github.com/chiahsien/CHTCollectionViewWaterfallLayout/issues/139#issuecomment-228363085","issue_url":"https://api.github.com/repos/chiahsien/CHTCollectionViewWaterfallLayout/issues/139","id":228363085,"user":{"login":"edwardyue","id":17318227,"avatar_url":"https://avatars.githubusercontent.com/u/17318227?v=3","gravatar_id":"","url":"https://api.github.com/users/edwardyue","html_url":"https://github.com/edwardyue","followers_url":"https://api.github.com/users/edwardyue/followers","following_url":"https://api.github.com/users/edwardyue/following{/other_user}","gists_url":"https://api.github.com/users/edwardyue/gists{/gist_id}","starred_url":"https://api.github.com/users/edwardyue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edwardyue/subscriptions","organizations_url":"https://api.github.com/users/edwardyue/orgs","repos_url":"https://api.github.com/users/edwardyue/repos","events_url":"https://api.github.com/users/edwardyue/events{/privacy}","received_events_url":"https://api.github.com/users/edwardyue/received_events","type":"User","site_admin":false},"created_at":"2016-06-24T14:36:30Z","updated_at":"2016-06-24T14:36:30Z","body":"Hi Nelson,\n\nSorry that I got follow error when move the code to viewDidlayoutsubviews\n\n-(void)viewDidLayoutSubviews\n\n{\n\n    CHTCollectionViewWaterfallLayout *layout = [[\nCHTCollectionViewWaterfallLayout alloc] init];\n\n\n\n    layout.sectionInset = UIEdgeInsetsMake(10, 10, 10, 10);\n\n    layout.headerHeight = 15;\n\n    layout.footerHeight = 10;\n\n    layout.minimumColumnSpacing = 5;\n\n    layout.minimumInteritemSpacing = 5;\n\n\n\n    [_imagesCollection setCollectionViewLayout:layout];\n\n\n\n\n\n}\n\n*2016-06-24 22:35:06.825 speeddate[1015:363452] *** Terminating app due to\nuncaught exception 'NSInvalidArgumentException', reason: '***\nsetObjectForKey: object cannot be nil (key: <NSIndexPath:\n0xc000000000000016> {length = 2, path = 0 - 0})'*\n\n**** First throw call stack:*\n\n*(0x183b52db0 0x1831b7f80 0x183a38494 0x1894f7560 0x183a38cac 0x183a38b84\n0x1894f7254 0x1894f7690 0x183a38cac 0x183a38b60 0x188e416c8 0x188e40870\n0x100120a40 0x188cac224 0x18663e994 0x1866395d0 0x188cc30a4 0x188d71694\n0x188d6f06c 0x188d87dd8 0x188d87ac4 0x188d877cc 0x188cebc28 0x188ce9ea4\n0x188d7b234 0x188d70d48 0x188d6fef4 0x188d6fb1c 0x188d6fa84 0x188cac1e4\n0x18663e994 0x1866395d0 0x186639490 0x186638ac0 0x186638820 0x188ca25f8\n0x183b08728 0x183b064cc 0x183b068fc 0x183a30c50 0x185318088 0x188d1a088\n0x100132474 0x1835ce8b8)*\n\n*libc++abi.dylib: terminating with uncaught exception of type NSException*\n\nOn Fri, Jun 24, 2016 at 5:47 PM, Edward Chan <yue.edward@gmail.com> wrote:\n\n> Thanks Nelson,\n>\n> i turn on the autolayout through Xcode by clicking the Use autolayout\n> checkbox in the main storyboard.\n>\n> Anyway, i will try your suggestion.\n>\n> Thanks and Regards.\n> edward\n>\n> On Fri, Jun 24, 2016 at 2:20 PM, Nelson <notifications@github.com> wrote:\n>\n>> It seems that you doesn't turn on autolayout.\n>>\n>> Anyway, try to setup collection view layout in\n>>\n>> - (void)viewDidLayoutSubviews {\n>> }\n>>\n>> —\n>> You are receiving this because you authored the thread.\n>> Reply to this email directly, view it on GitHub\n>> <https://github.com/chiahsien/CHTCollectionViewWaterfallLayout/issues/139#issuecomment-228267071>,\n>> or mute the thread\n>> <https://github.com/notifications/unsubscribe/AQhBU_KrlaxYV5Oe2k9uYdRq2WTXt1qOks5qO3cUgaJpZM4I9dvY>\n>> .\n>>\n>\n>\n>\n> --\n> Thanks and Regards,\n> Edward Chan Woon Yue\n>\n\n\n\n-- \nThanks and Regards,\nEdward Chan Woon Yue\n"}}
{"actor":{"display_login":"edwardyue"}}