ashu
ashu

Reputation: 11

How to create attached view using UICollectionView in iOS

enter image description here

After every 2 rows of collection view there is a separator that will be used to show banner ads. Please suggest a way to create this screen

Upvotes: 1

Views: 57

Answers (2)

iOS Geek
iOS Geek

Reputation: 4855

You need to implement the “viewForSupplementaryElementOfKind:” method.

Check this link for more info.

Upvotes: 1

David Ansermot
David Ansermot

Reputation: 6112

You can do this by using the section header view. Simply use the datasource method to provider as section header view an ad view.

You can follow this link to a good tutorial

Upvotes: 2

Related Questions