{"action":"created","issue":{"url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController/issues/2","repository_url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController","labels_url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController/issues/2/comments","events_url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController/issues/2/events","html_url":"https://github.com/DevonBoyer/DBProfileViewController/issues/2","id":137642623,"number":2,"title":"Problem with UICollectionView as content view controller","user":{"login":"francesc-o","id":9960424,"avatar_url":"https://avatars.githubusercontent.com/u/9960424?v=3","gravatar_id":"","url":"https://api.github.com/users/francesc-o","html_url":"https://github.com/francesc-o","followers_url":"https://api.github.com/users/francesc-o/followers","following_url":"https://api.github.com/users/francesc-o/following{/other_user}","gists_url":"https://api.github.com/users/francesc-o/gists{/gist_id}","starred_url":"https://api.github.com/users/francesc-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francesc-o/subscriptions","organizations_url":"https://api.github.com/users/francesc-o/orgs","repos_url":"https://api.github.com/users/francesc-o/repos","events_url":"https://api.github.com/users/francesc-o/events{/privacy}","received_events_url":"https://api.github.com/users/francesc-o/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-01T17:53:30Z","updated_at":"2016-03-02T02:19:56Z","closed_at":null,"body":"Excuse me, but I have another problem (the last) that I can't fix. The controller works fine with UITableView, but when I try to add a controller with UICollectionView, at the end of scroll there's an empty space between last cell and the bottom of collection view (see screenshot of my modified demo project). The height of empty space increases in my project (second screenshot), where cells are loaded dinamically. I tried to specify size of footer and header of UICollectionView to 0 and other things, but nothing change.\r\nHave you some tricks about this problem with UICollectionView?\r\n\r\n![simulator screen shot 01 mar 2016 15 58 59](https://cloud.githubusercontent.com/assets/9960424/13436141/1fffb580-dfde-11e5-8f3f-88c9789f6949.png)\r\n![simulator screen shot 01 mar 2016 18 33 42](https://cloud.githubusercontent.com/assets/9960424/13436143/2067b3b0-dfde-11e5-9dd0-b579716a4a34.png)"},"comment":{"url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController/issues/comments/191020519","html_url":"https://github.com/DevonBoyer/DBProfileViewController/issues/2#issuecomment-191020519","issue_url":"https://api.github.com/repos/DevonBoyer/DBProfileViewController/issues/2","id":191020519,"user":{"login":"DevonBoyer","id":5367914,"avatar_url":"https://avatars.githubusercontent.com/u/5367914?v=3","gravatar_id":"","url":"https://api.github.com/users/DevonBoyer","html_url":"https://github.com/DevonBoyer","followers_url":"https://api.github.com/users/DevonBoyer/followers","following_url":"https://api.github.com/users/DevonBoyer/following{/other_user}","gists_url":"https://api.github.com/users/DevonBoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/DevonBoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DevonBoyer/subscriptions","organizations_url":"https://api.github.com/users/DevonBoyer/orgs","repos_url":"https://api.github.com/users/DevonBoyer/repos","events_url":"https://api.github.com/users/DevonBoyer/events{/privacy}","received_events_url":"https://api.github.com/users/DevonBoyer/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T02:19:56Z","updated_at":"2016-03-02T02:19:56Z","body":"The way I implemented it is if you provide a scrollView with a contentSize too small to scroll the entire screen (until the segmented control touches the navigation bar) then the 'contentScrollView.contentInset.bottom' will be adjusted in order to compensate, so that the scrollView can always be scrolled enough so that the segmented control touches the navigation bar. This was a UX decision since seamlessly switching between segments becomes difficult otherwise.\r\n\r\nDoes this sound like what you are describing? I can look into this further if this behaviour is not what your problem is. \r\n\r\nIn any case, if you want to prevent this behaviour you can manually set the contentScrollView.contentInset.bottom = 0 (but I don't recommend this)."}}