# Uicollectionview custom layout pinterest

**URL:** <https://forums.kodeco.com/t/uicollectionview-custom-layout-pinterest/18161>\
**Category:** Swift\
**Created:** [August 5, 2016, 10:33am UTC](https://forums.kodeco.com/t/uicollectionview-custom-layout-pinterest/18161 "2016-08-05T10:33:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi74](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ravi74/32/81494_2.png) [@ravi74](https://forums.kodeco.com/u/ravi74)\
**Post date:** [August 5, 2016, 10:33am UTC](https://forums.kodeco.com/t/uicollectionview-custom-layout-pinterest/18161/1 "2016-08-05T10:33:23Z")

</div>

I want to reload the uicollectionview custom

dispatch\_async(dispatch\_get\_main\_queue(),{  
collectionView.reloadData()  
collectionView.layoutIfNeeded()  
});

getting data from server and displaying in collection , loading 2 page , i cannot reload the collection view  
can any one provide solution for this ?

---

<div class="post-metadata">

**Author:** ![marciokoko](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/marciokoko/32/32922_2.png) [@marciokoko](https://forums.kodeco.com/u/marciokoko)\
**Post date:** [August 6, 2016, 5:59pm UTC](https://forums.kodeco.com/t/uicollectionview-custom-layout-pinterest/18161/2 "2016-08-06T17:59:51Z")

</div>

What happens when that method is called?

---

<div class="post-metadata">

**Author:** ![ravi74](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ravi74/32/81494_2.png) [@ravi74](https://forums.kodeco.com/u/ravi74)\
**Post date:** [August 6, 2016, 6:13pm UTC](https://forums.kodeco.com/t/uicollectionview-custom-layout-pinterest/18161/3 "2016-08-06T18:13:10Z")

</div>

Uicollectionview not reloading
