# iOS Apprentice

**URL:** https://forums.kodeco.com/c/books/ios-apprentice/7.md?page=25

[Latest](https://forums.kodeco.com/latest.md) · [Categories](https://forums.kodeco.com/categories.md) · [Tags](https://forums.kodeco.com/tags.md)

**Page:** 26

---

## [Difference between tableView.deleteRowAtIndexPaths() and tableView.reloadData()](https://forums.kodeco.com/t/difference-between-tableview-deleterowatindexpaths-and-tableview-reloaddata/11647)

<div class="topic-metadata">

**Author:** [@jeetendra](https://forums.kodeco.com/u/jeetendra)\
**Replies:** 5\
**Last updated:** [March 31, 2016, 5:33pm UTC](https://forums.kodeco.com/t/difference-between-tableview-deleterowatindexpaths-and-tableview-reloaddata/11647 "2016-03-31T17:33:34Z")

</div>

In the checklist tutorial I found that we are using below code to delete cell from tableView if editingStyle == UITableViewCellEditingStyle.Delete { lists.removeAtIndex(indexPath.row) let…

---

## [What is the point of setting row height in StoryBorad?](https://forums.kodeco.com/t/what-is-the-point-of-setting-row-height-in-storyborad/11560)

<div class="topic-metadata">

**Author:** [@den330](https://forums.kodeco.com/u/den330)\
**Replies:** 1\
**Last updated:** [March 31, 2016, 3:04pm UTC](https://forums.kodeco.com/t/what-is-the-point-of-setting-row-height-in-storyborad/11560 "2016-03-31T15:04:19Z")

</div>

It does not work. You will set row height in tableView(heightForRowAtIndexPath) at the end, which does work. The effect of setting it in storyboard only appear in storyboard, when you run, the height remains the same.

---

## [Main Story board missing! Blank](https://forums.kodeco.com/t/main-story-board-missing-blank/11208)

<div class="topic-metadata">

**Author:** [@yoguido77](https://forums.kodeco.com/u/yoguido77)\
**Replies:** 4\
**Last updated:** [March 28, 2016, 8:40pm UTC](https://forums.kodeco.com/t/main-story-board-missing-blank/11208 "2016-03-28T20:40:58Z")

</div>

Hello, I got to page 109 of the book and was adding the HTML content but when I got the add file part I did not get the option to “copy items if needed”. Before finishing I tried to In the storyboard file, connect the U…

---

## [Book 2 After NSUserDefaults Can't save](https://forums.kodeco.com/t/book-2-after-nsuserdefaults-cant-save/10661)

<div class="topic-metadata">

**Author:** [@jackrustman](https://forums.kodeco.com/u/jackrustman)\
**Replies:** 3\
**Last updated:** [March 23, 2016, 8:49pm UTC](https://forums.kodeco.com/t/book-2-after-nsuserdefaults-cant-save/10661 "2016-03-23T20:49:54Z")

</div>

I can’t figure out for the life of me why on my simulator if I stop from Checklist screen and reboot it doesnt save anything but if I stop from a different screen it saves. I think i’m going crazy. I have tried copy an…

---

## [Failing with “unexpectedly found nil” error (MyLocations) \[SOLVED\]](https://forums.kodeco.com/t/failing-with-unexpectedly-found-nil-error-mylocations-solved/10397)

<div class="topic-metadata">

**Author:** [@kiaorasat](https://forums.kodeco.com/u/kiaorasat)\
**Replies:** 3\
**Last updated:** [March 23, 2016, 8:55am UTC](https://forums.kodeco.com/t/failing-with-unexpectedly-found-nil-error-mylocations-solved/10397 "2016-03-23T08:55:13Z")

</div>

Hi iOS gurus, Now I’m failing to complete the final step on P.165 in iOS Apprentice 3(MyLocations) with: ++++++ fatal error: unexpectedly found nil while unwrapping an Optional value ++++++ When I press the Done but…

---

## [The 3rd Book, updateLabel()?](https://forums.kodeco.com/t/the-3rd-book-updatelabel/10307)

<div class="topic-metadata">

**Author:** [@den330](https://forums.kodeco.com/u/den330)\
**Replies:** 1\
**Last updated:** [March 20, 2016, 9:19am UTC](https://forums.kodeco.com/t/the-3rd-book-updatelabel/10307 "2016-03-20T09:19:32Z")

</div>

I noticed that you made the lasttimeerror to be nil if you get the correct location at the end, but not the other way around. Will there be a case that, you get the correct location at first, and then you encounter an e…

---

## [Error in checklist app](https://forums.kodeco.com/t/error-in-checklist-app/10294)

<div class="topic-metadata">

**Author:** [@charlielqy](https://forums.kodeco.com/u/charlielqy)\
**Replies:** 1\
**Last updated:** [March 20, 2016, 9:17am UTC](https://forums.kodeco.com/t/error-in-checklist-app/10294 "2016-03-20T09:17:57Z")

</div>

Hello, I have a error on page 43 when I tried to add configureCheckmarkForCell() in code. Here is the code override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -\> UITableViewCel…

---

## [Why "if" must add before "let" on method of adding webview?](https://forums.kodeco.com/t/why-if-must-add-before-let-on-method-of-adding-webview/10066)

<div class="topic-metadata">

**Author:** [@kavenw](https://forums.kodeco.com/u/kavenw)\
**Replies:** 4\
**Last updated:** [March 17, 2016, 11:25pm UTC](https://forums.kodeco.com/t/why-if-must-add-before-let-on-method-of-adding-webview/10066 "2016-03-17T23:25:28Z")

</div>

if let htmlFile = NSBundle.mainBundle().pathForResource("BullsEye", ofType: "html") { if let htmlData = NSData(contentsOfFile: htmlFile) { let baseURL = NSURL(fileURLWithPath: NSBundle.mainBund…

---

## [Error with Checklists app - please help! \[SOLVED\]](https://forums.kodeco.com/t/error-with-checklists-app-please-help-solved/9337)

<div class="topic-metadata">

**Author:** [@robertgarner1](https://forums.kodeco.com/u/robertgarner1)\
**Replies:** 3\
**Last updated:** [March 15, 2016, 8:46pm UTC](https://forums.kodeco.com/t/error-with-checklists-app-please-help-solved/9337 "2016-03-15T20:46:28Z")

</div>

I’ve just started part two on Checklists, but keep getting this error at page 37 with this code: "Cannot assign to property: “row” is a get-only property if indexPath.row == 0 { label.text = row0text } else if in…

---

## [Big picture of table view?(iOS Apprentice 2)](https://forums.kodeco.com/t/big-picture-of-table-view-ios-apprentice-2/9458)

<div class="topic-metadata">

**Author:** [@kiaorasat](https://forums.kodeco.com/u/kiaorasat)\
**Replies:** 3\
**Last updated:** [March 14, 2016, 8:44am UTC](https://forums.kodeco.com/t/big-picture-of-table-view-ios-apprentice-2/9458 "2016-03-14T08:44:24Z")

</div>

Hello, I’m a newbie to iOS App development and have just completed iOS Apprentice 2(Checklist). It was an incredibly great learning experience! Thanks for that. :slight\_smile: So far so good, but I’m still not sure a…

---

## [Gesture Recognizer in Part 4](https://forums.kodeco.com/t/gesture-recognizer-in-part-4/8888)

<div class="topic-metadata">

**Author:** [@emanleet](https://forums.kodeco.com/u/emanleet)\
**Replies:** 1\
**Last updated:** [March 10, 2016, 9:11am UTC](https://forums.kodeco.com/t/gesture-recognizer-in-part-4/8888 "2016-03-10T09:11:56Z")

</div>

Hi group, I am having trouble understanding this bit of code in a modal popup view controller called DetailViewController: extension DetailViewController: UIGestureRecognizerDelegate { func gestureRecognizer(gestureRec…

---

## [configureGetButton Tuturorial 3](https://forums.kodeco.com/t/configuregetbutton-tuturorial-3/8459)

<div class="topic-metadata">

**Author:** [@bfiedler](https://forums.kodeco.com/u/bfiedler)\
**Replies:** 1\
**Last updated:** [March 8, 2016, 8:31am UTC](https://forums.kodeco.com/t/configuregetbutton-tuturorial-3/8459 "2016-03-08T08:31:58Z")

</div>

I am on page 59 of tutorial three. I am creating the function below to change the title of a button. I am getting an error of finding nil. I am confused. getButton is declared with the value of false, and the button “get…

---

## [Combining search result table with Maps](https://forums.kodeco.com/t/combining-search-result-table-with-maps/3993)

<div class="topic-metadata">

**Author:** [@clairesoem](https://forums.kodeco.com/u/clairesoem)\
**Replies:** 9\
**Last updated:** [March 5, 2016, 4:16pm UTC](https://forums.kodeco.com/t/combining-search-result-table-with-maps/3993 "2016-03-05T16:16:59Z")

</div>

I’m trying to combine the Store Search table (search results) (Book 4) with a map view (my locations book 3). The longitude and latitude are part of the array downloaded from the website. I can’t work out how to pass t…

---

## [nothingFoundCell is not found](https://forums.kodeco.com/t/nothingfoundcell-is-not-found/2497)

<div class="topic-metadata">

**Author:** [@applemax](https://forums.kodeco.com/u/applemax)\
**Replies:** 3\
**Last updated:** [February 29, 2016, 6:24pm UTC](https://forums.kodeco.com/t/nothingfoundcell-is-not-found/2497 "2016-02-29T18:24:50Z")

</div>

p.43 NothingFoundCell is not awaken from .xib - when "if searchBar.text! != “Justin bieber” is executed, i.e. I put “Justin bieber” into the bar field, the code in SearchViewController does not reach tableView dequeuein…

---

## [iOS apprentice 3 book page 150](https://forums.kodeco.com/t/ios-apprentice-3-book-page-150/3333)

<div class="topic-metadata">

**Author:** [@j\_k\_nash](https://forums.kodeco.com/u/j_k_nash)\
**Replies:** 1\
**Last updated:** [February 29, 2016, 7:18pm UTC](https://forums.kodeco.com/t/ios-apprentice-3-book-page-150/3333 "2016-02-29T19:18:00Z")

</div>

lazy var managedObjectContext: NSManagedObjectContext = { guard let modelURL = NSBundle.mainBundle().URLForResource("DataModel", withExtension: "momd") else { fatalError("Could not find data model in app bundle") } …

[Previous page](https://forums.kodeco.com/c/books/ios-apprentice/7.md?page=24)
