I've spent hours trying to find a solution but I always end up with nothing. 

I am trying to create a Segment Control inside a `TableView` that have a `CustomCell` for two views for the Segment Control. 

<https://www.youtube.com/watch?v=dw7kytoA3KU&t=198s> is a perfect example of what I am trying to accomplish but the user puts inserts 1 CustomCell and the code is a bit confusing.

My first CustomCell contains an images, names, and numbers.
My second CustomCell contains only an image. 

So my questions is...

1. How should I create two array for the two CustomCell?

*Example of what I'm trying to accomplish*

Custom Cell 1:

```
              let names = ["Pizza","Soup","Tacos","Chicken", "Beef"]
              let image = [UIImage(named: "Pizza1"), UIImage(named: "Soup1"), UIImage(named: "Tacos1"), UIImage(named: "Chicken1"), UIImage(named: "Beef1")]
              let numbers = ["1", "2", "3", "4", "5"]

```

Custom Cell 2: 

```
          let photo = [UIImage(named: "Pic1"), UIImage(named: "Pic2"), UIImage(named: "Pic3")]

```

2. From what I've researched, When it's time to call for the CustomCell file and the two CustomCell into my code, would this be correct? 

```
 let nib = UINib(nibName: "CustomCell", bundle: nil)
 tableView.register(nib, forCallReuseIdentifier: "CustomCell1")
 tableView.register(nib, forCallReuseIdentifier: "CustomCell2")

```
3. What should be returned for this?

`func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int`
4. This part is where I get confused on what to enter

`func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell`

Summary: I'm trying to create a segment control in a tableView that have 2 CustomCells. I want the first view of the segment to be CustomCell that has the images, name, and number. The second view of the segment to have just the image. 

Thanks!