# ERROR iOS Apprentice Page 192 Book

**URL:** <https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405>\
**Category:** iOS Apprentice\
**Created:** [November 9, 2017, 12:31am UTC](https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405 "2017-11-09T00:31:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![coltkell](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@coltkell](https://forums.kodeco.com/u/coltkell)\
**Post date:** [November 9, 2017, 12:31am UTC](https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405/1 "2017-11-09T00:31:08Z")

</div>

![37 PM](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/4/d/4d3680556bde03781cf4e5bbfca9a7bc1bcb4796.png)

I am getting an error on iOS Apprentice page 192. I have provided a snap shot of the error as well as the code. It appears its the

func configureText(for cell: UITableViewCell, with item: ChecklistItem) {  
let label = cell.viewWithTag(1000) as! UILabel  
label.text = item.text  
}

Indicates you cannot downcast as UILabel?? Please advise on this as I’m following the book, unless something changed? I appreciate any help anyone has. Thank you!

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [November 9, 2017, 4:27am UTC](https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405/2 "2017-11-09T04:27:13Z")

</div>

The issue is not the downcasting but probably the fact that you have the tag value of 1000 set on the wrong view 🙂 The view returned by the call to `cell.viewWithTag(1000)` appears to be a `UITableViewCell` instead of a `UILabel`. You would have to check your storyboard and make sure that you have the tag set correctly on the label and not on the table view cell containing the label and then you should be good to go.

---

<div class="post-metadata">

**Author:** ![coltkell](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@coltkell](https://forums.kodeco.com/u/coltkell)\
**Post date:** [November 9, 2017, 11:34pm UTC](https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405/3 "2017-11-09T23:34:01Z")

</div>

Thank you, Sir! Fahim, I appreciate you taking the time to look at this and providing an answer quickly. It’s working, yay! Lesson Learned! Have a great day!

---

<div class="post-metadata">

**Author:** ![fahim](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/fahim/32/110943_2.png) [@fahim](https://forums.kodeco.com/u/fahim)\
**Post date:** [November 10, 2017, 4:12am UTC](https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405/4 "2017-11-10T04:12:26Z")

</div>

Happy to help 🙂 Enjoy your adventures in coding!

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [April 24, 2018, 4:31pm UTC](https://forums.kodeco.com/t/error-ios-apprentice-page-192-book/36405/5 "2018-04-24T16:31:14Z")

</div>

Closed on April 24, 2018, 4:31pm UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
