title: UICollectionView inside Static TableViewCell
body: <p>I've seen many tutorials online pertaining to embedding UICollectionViews inside dynamic table view cells and subclassing the collection view to set the delegate but I was wondering if the process is any different for static table view cells.</p>
  
  <p>I tried following the example <a href="https://github.com/DahanHu/DHCollectionTableView" rel="nofollow">here</a> but I couldn't quite follow it through because it seems overly complicated with little to no explanation. Would anyone mind outlining the basic steps I need to go through with in order to get my collection view to work?</p>
  
  <p>Here's my code so far:</p>
  
  <pre><code>class FeaturedController: UITableViewController, UIScrollViewDelegate, UICollectionViewDataSource, UICollectionViewDelegate {
  
  override func viewDidLoad() {
      super.viewDidLoad()
      popularCollectionView.dataSource = self
      popularCollectionView.delegate = self
  }
  
  //MARK: Popular Events Collection View
      @IBOutlet weak var popularCollectionView: UICollectionView!
  
      func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -&gt; Int {
          return 4
      }
  
      func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -&gt; UICollectionViewCell {
          let cell = popularCollectionView.dequeueReusableCellWithReuseIdentifier("popular", forIndexPath: indexPath) as! UICollectionViewCell
  
          return cell
      }
  </code></pre>
  
  <p>Many thanks!</p>