# Beginning Table Views · Updating the Controller | Ray Wenderlich

**URL:** <https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676>\
**Category:** 🎓 Courses & Articles\
**Created:** [September 9, 2018, 12:42pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676 "2018-09-09T12:42:46Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [September 9, 2018, 12:42pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/1 "2018-09-09T12:42:46Z")

</div>

* * *
This is a companion discussion topic for the original entry at [https://www.raywenderlich.com/5995-beginning-table-views/lessons/52](https://www.raywenderlich.com/5995-beginning-table-views/lessons/52)

---

<div class="post-metadata">

**Author:** ![gsharm1](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/gsharm1/32/105422_2.png) [@gsharm1](https://forums.kodeco.com/u/gsharm1)\
**Post date:** [December 18, 2018, 6:24pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/2 "2018-12-18T18:24:57Z")

</div>

Good course, but the refactoring stuff gets far too overwhelming towards the end. Too much to throw at someone learning iOS at the same time.

---

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [December 21, 2018, 6:30pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/3 "2018-12-21T18:30:44Z")

</div>

Thanks for the feedback. I appreciate the heads up.

---

<div class="post-metadata">

**Author:** ![juno](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/juno/32/102075_2.png) [@juno](https://forums.kodeco.com/u/juno)\
**Post date:** [May 18, 2019, 8:02am UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/4 "2019-05-18T08:02:43Z")

</div>

I really appreciate letting us know different possibilities and features that we can implement in Table View, but I think it would be best to learn these stuffs in a bit more isolated manner, rather than deleting and adding new functions here and there.

---

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [May 20, 2019, 3:03pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/5 "2019-05-20T15:03:47Z")

</div>

Hi Juno,

Yes - I agree as well. We used to have separate course just on table views and I think it would be good for us to return to that model. Thanks for the feedback. I’ll let the team know.

---

<div class="post-metadata">

**Author:** ![juno](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/juno/32/102075_2.png) [@juno](https://forums.kodeco.com/u/juno)\
**Post date:** [May 21, 2019, 1:17am UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/6 "2019-05-21T01:17:26Z")

</div>

By the way, it’s an amazing course. Although it took me quite a long time to go through the entire course, you have taught so many valuable functionalities that i can later use when using a tableView. Great work Brian!

---

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [June 10, 2019, 4:01pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/7 "2019-06-10T16:01:34Z")

</div>

Thanks so much! I really appreciate it!

---

<div class="post-metadata">

**Author:** ![kramer45](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kramer45/32/81494_2.png) [@kramer45](https://forums.kodeco.com/u/kramer45)\
**Post date:** [July 1, 2019, 2:28pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/8 "2019-07-01T14:28:43Z")

</div>

I agee. It’s all a bit didactic towards the end.

---

<div class="post-metadata">

**Author:** ![kramer45](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/kramer45/32/81494_2.png) [@kramer45](https://forums.kodeco.com/u/kramer45)\
**Post date:** [July 1, 2019, 2:32pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/9 "2019-07-01T14:32:22Z")

</div>

Just a note on something that I was struggling with:

When it came to refactoring the numberOfSections(in:) method, the autocomplete suggested:

TodoList.Priority.AllCases

and then wouldn’t let me apply the instance member .count to this type.

After a bit of searching, I realised that it was important that allCases not be capitalised as such:

TodoList.Priority.allCases.count

which fixed the error.

---

<div class="post-metadata">

**Author:** ![ericsutton33](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/ericsutton33/32/81494_2.png) [@ericsutton33](https://forums.kodeco.com/u/ericsutton33)\
**Post date:** [September 30, 2019, 2:53am UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/10 "2019-09-30T02:53:03Z")

</div>

Explanations would help when doing updating all of this code

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [October 15, 2019, 12:20am UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/11 "2019-10-15T00:20:46Z")

</div>

@ericsutton33 Please let us know what you don’t understand exactly when you get a chance. Thank you!

---

<div class="post-metadata">

**Author:** ![hashmo](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hashmo/32/81494_2.png) [@hashmo](https://forums.kodeco.com/u/hashmo)\
**Post date:** [November 4, 2019, 5:16pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/12 "2019-11-04T17:16:22Z")

</div>

At 2:08 you started to refactor ‘addItem’, am I correct that we unhooked this function from the ‘+’ nav bar button when we hooked that up to now use the segue to the other tableviewcontroller which then did the work to add the item to the todoList (using the text we typed in) and returned back to this tableviewcontroller via the delegate for updating the view.

---

<div class="post-metadata">

**Author:** ![bdmoakley](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/bdmoakley/32/108772_2.png) [@bdmoakley](https://forums.kodeco.com/u/bdmoakley)\
**Post date:** [November 6, 2019, 2:40pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/13 "2019-11-06T14:40:00Z")

</div>

Yes, you are correct.  
This section ended up being far more complex than intended. When we update the course, we’ll use a far less complex app that doesn’t have so many moving parts.

---

<div class="post-metadata">

**Author:** ![andreysvx](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/andreysvx/32/105896_2.png) [@andreysvx](https://forums.kodeco.com/u/andreysvx)\
**Post date:** [December 12, 2019, 5:32pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/14 "2019-12-12T17:32:26Z")

</div>

@bdmoakley, could you please explain why you use TodoList.Priority(rawValue: index), TodoList.Priority.allCases and TodoList.Priority.medium.rawValue. What do the functions belong to and why do you use them not as todoList variable methods but as somr standalone functions as it seems to me?

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [January 13, 2020, 11:49pm UTC](https://forums.kodeco.com/t/beginning-table-views-updating-the-controller-ray-wenderlich/48676/15 "2020-01-13T23:49:10Z")

</div>

@bdmoakley Can you please help with this when you get a chance? Thank you - much appreciated! :]
