# Change detailview according to masterview in UISplitViewController

**URL:** <https://forums.kodeco.com/t/change-detailview-according-to-masterview-in-uisplitviewcontroller/16014>\
**Category:** iOS\
**Created:** [June 16, 2016, 6:51am UTC](https://forums.kodeco.com/t/change-detailview-according-to-masterview-in-uisplitviewcontroller/16014 "2016-06-16T06:51:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishwas](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/vishwas/32/81494_2.png) [@vishwas](https://forums.kodeco.com/u/vishwas)\
**Post date:** [June 16, 2016, 6:51am UTC](https://forums.kodeco.com/t/change-detailview-according-to-masterview-in-uisplitviewcontroller/16014/1 "2016-06-16T06:51:46Z")

</div>

I have a ` UISplitViewController` which has a ` searchfiled` in the first row of its master view which is a `tableview` as we all know. And my detail view contains a collectionview i have to update my collectionviewcells according to the `seacrhfield` text. So how i update collectionview cells according to my result.

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/e/4/e4da5f5bca31b10b47201d5b9d430dbda3845936.png)

---

<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:** [June 17, 2016, 12:00am UTC](https://forums.kodeco.com/t/change-detailview-according-to-masterview-in-uisplitviewcontroller/16014/2 "2016-06-17T00:00:29Z")

</div>

Check this tutorial out. Its kind of old, but the main idea is there:

[https://www.raywenderlich.com/78550/beginning-ios-collection-views-swift-part-1](https://www.raywenderlich.com/78550/beginning-ios-collection-views-swift-part-1)

It uses an extension and a class called FlickrSearchResults.
