# iOS Apprentice

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

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

**Page:** 24

---

## [My App won't load on device](https://forums.kodeco.com/t/my-app-wont-load-on-device/16752)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 3\
**Last updated:** [July 1, 2016, 2:33pm UTC](https://forums.kodeco.com/t/my-app-wont-load-on-device/16752 "2016-07-01T14:33:19Z")

</div>

I am going through the checklist tutorial, which is great, my code has deviated from @hollance as I try new things. It compiles ok and I put it on my device fine, used it fine. When to either reopen it or take it out of …

---

## [iOS Apprentice Checklist: fatal error](https://forums.kodeco.com/t/ios-apprentice-checklist-fatal-error/16723)

<div class="topic-metadata">

**Author:** [@rouviere](https://forums.kodeco.com/u/rouviere)\
**Replies:** 3\
**Last updated:** [June 30, 2016, 7:52pm UTC](https://forums.kodeco.com/t/ios-apprentice-checklist-fatal-error/16723 "2016-06-30T19:52:21Z")

</div>

When I open the source code file 08 - Improved Data Model I get the following error message: fatal error: unexpectedly found nil while unwrapping an Optional value This actually happens on all source files in 08, 09,…

---

## [Swift 3 upgrade](https://forums.kodeco.com/t/swift-3-upgrade/16696)

<div class="topic-metadata">

**Author:** [@michaelangelo716](https://forums.kodeco.com/u/michaelangelo716)\
**Replies:** 1\
**Last updated:** [June 29, 2016, 11:43pm UTC](https://forums.kodeco.com/t/swift-3-upgrade/16696 "2016-06-29T23:43:26Z")

</div>

Will we get a free upgrade to swift 3 version if we have already purchased the apprentice package?

---

## [Error using of indexOf() from Checklists tutorial](https://forums.kodeco.com/t/error-using-of-indexof-from-checklists-tutorial/16517)

<div class="topic-metadata">

**Author:** [@jvanlint](https://forums.kodeco.com/u/jvanlint)\
**Replies:** 3\
**Last updated:** [June 27, 2016, 5:28pm UTC](https://forums.kodeco.com/t/error-using-of-indexof-from-checklists-tutorial/16517 "2016-06-27T17:28:46Z")

</div>

Hi there, Been trying to use the delegation pattern used in Checklists for my own app. I am managing a list of data file locations instead. I am pretty much using the code word for word. But I am getting this unusual er…

---

## [Configure multiple labels in function](https://forums.kodeco.com/t/configure-multiple-labels-in-function/16540)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 1\
**Last updated:** [June 27, 2016, 2:29am UTC](https://forums.kodeco.com/t/configure-multiple-labels-in-function/16540 "2016-06-27T02:29:17Z")

</div>

Hi I have adjusted the function configureCell as below and given my label the tag of 3000. // update label via tag func configureTextForCell(cell: UITableViewCell, withPlayer player: Player){ let jerseyLabel = …

---

## [Cmd + Q with XCode](https://forums.kodeco.com/t/cmd-q-with-xcode/16486)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 2\
**Last updated:** [June 27, 2016, 1:27am UTC](https://forums.kodeco.com/t/cmd-q-with-xcode/16486 "2016-06-27T01:27:15Z")

</div>

Hi @hollance (or others :slight\_smile:) I’m enjoying your checklist tutorial, my app has deviated from yours slightly but seems to be working ok, which is super. I had a question, I’ve just got acquainted with the savin…

---

## [Tutorial 3 - pg 128 background is all black](https://forums.kodeco.com/t/tutorial-3-pg-128-background-is-all-black/16423)

<div class="topic-metadata">

**Author:** [@simonqq](https://forums.kodeco.com/u/simonqq)\
**Replies:** 0\
**Last updated:** [June 23, 2016, 9:18pm UTC](https://forums.kodeco.com/t/tutorial-3-pg-128-background-is-all-black/16423 "2016-06-23T21:18:45Z")

</div>

On page 126, it says to remove the backgroundColor line and to fill in the drawRect method. The small HUD is displayed but, the background is completely dark and can not see the table view of the location details contro…

---

## [UITableViewCells](https://forums.kodeco.com/t/uitableviewcells/16187)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 4\
**Last updated:** [June 22, 2016, 10:03pm UTC](https://forums.kodeco.com/t/uitableviewcells/16187 "2016-06-22T22:03:22Z")

</div>

Hi I’m using @hollance’s excellent tutorial and adapting for my own needs. I’m currently working through cheklists and wondering about this. When you have the disclosure indicator as the the little i in the circle and a…

---

## [Storesearch info.plist issue](https://forums.kodeco.com/t/storesearch-info-plist-issue/16083)

<div class="topic-metadata">

**Author:** [@leelarson](https://forums.kodeco.com/u/leelarson)\
**Replies:** 1\
**Last updated:** [June 17, 2016, 4:24pm UTC](https://forums.kodeco.com/t/storesearch-info-plist-issue/16083 "2016-06-17T16:24:57Z")

</div>

I am on page 125 in the storeSearch app trying to edit the info.plist file It keeps replacing NSAppTransportSecurity with “App Transport Security Setting” and the app keeps generating the Secuiry has blocked a cleartex…

---

## [StoreSearch: popover preferred content size](https://forums.kodeco.com/t/storesearch-popover-preferred-content-size/16043)

<div class="topic-metadata">

**Author:** [@thomasblom](https://forums.kodeco.com/u/thomasblom)\
**Replies:** 1\
**Last updated:** [June 17, 2016, 2:46am UTC](https://forums.kodeco.com/t/storesearch-popover-preferred-content-size/16043 "2016-06-17T02:46:04Z")

</div>

Hi, I can’t seem to get the popover discussed on p277 (pdf) to respect the preferred content size. I have tried messing with the Transition Style and Presentation dropdowns (neither of which are mentioned in the tutori…

---

## [Release date for iOS Apprentice with Swift 3](https://forums.kodeco.com/t/release-date-for-ios-apprentice-with-swift-3/15965)

<div class="topic-metadata">

**Author:** [@milonet](https://forums.kodeco.com/u/milonet)\
**Replies:** 4\
**Last updated:** [June 16, 2016, 3:14pm UTC](https://forums.kodeco.com/t/release-date-for-ios-apprentice-with-swift-3/15965 "2016-06-16T15:14:27Z")

</div>

Hi all, when The iOS Apprentice update with Swift 3 will be released? I’m beginning to learn swift but do not know if I should expect swift 3 or if I can start with the 2.2

---

## [Help:Problem ordering book The iOS Apprentice Fourth Edition swift 2.0](https://forums.kodeco.com/t/help-problem-ordering-book-the-ios-apprentice-fourth-edition-swift-2-0/15929)

<div class="topic-metadata">

**Author:** [@saar](https://forums.kodeco.com/u/saar)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 3:00pm UTC](https://forums.kodeco.com/t/help-problem-ordering-book-the-ios-apprentice-fourth-edition-swift-2-0/15929 "2016-06-14T15:00:09Z")

</div>

Can someone help me. I want to order The iOS Apprentice Fourth Edition Beginning iOS Development with Swift 2.0. But i have notice that to order the pdf or the pdf and book on paper you need a visacard. It is for me no…

---

## [Apprentice will always be updated?](https://forums.kodeco.com/t/apprentice-will-always-be-updated/15906)

<div class="topic-metadata">

**Author:** [@muaddib](https://forums.kodeco.com/u/muaddib)\
**Replies:** 1\
**Last updated:** [June 14, 2016, 12:06pm UTC](https://forums.kodeco.com/t/apprentice-will-always-be-updated/15906 "2016-06-14T12:06:20Z")

</div>

Hi, I just bought the iOS apprentice 4 PDF. Which gave me access to all 4 apprentice tutorials. Will this series be updated automatically? ( like for iOS 10, or swift 3.0?)

---

## [Tutorial 3 - CLLocation not printing out error](https://forums.kodeco.com/t/tutorial-3-cllocation-not-printing-out-error/15844)

<div class="topic-metadata">

**Author:** [@simonqq](https://forums.kodeco.com/u/simonqq)\
**Replies:** 1\
**Last updated:** [June 13, 2016, 2:57am UTC](https://forums.kodeco.com/t/tutorial-3-cllocation-not-printing-out-error/15844 "2016-06-13T02:57:57Z")

</div>

On pg.39 when we press the “Don’t allow” button, it seems my console does not populate with the didFailWithError message. However, it does work when I add the alert controller. Does anyone know if this has been changed? …

---

## [Errors with .text on page 102](https://forums.kodeco.com/t/errors-with-text-on-page-102/15756)

<div class="topic-metadata">

**Author:** [@rouviere](https://forums.kodeco.com/u/rouviere)\
**Replies:** 2\
**Last updated:** [June 10, 2016, 9:27pm UTC](https://forums.kodeco.com/t/errors-with-text-on-page-102/15756 "2016-06-10T21:27:21Z")

</div>

I am working through iOS Apprentice 2 and have run into an error with the delegate code on page 102 - line 3 of the following: @IBAction func done() { let item = ChecklistItem() item.text = textField.tex…

---

## [IOS apprentice 3 page 260](https://forums.kodeco.com/t/ios-apprentice-3-page-260/15740)

<div class="topic-metadata">

**Author:** [@leelarson](https://forums.kodeco.com/u/leelarson)\
**Replies:** 5\
**Last updated:** [June 10, 2016, 1:28pm UTC](https://forums.kodeco.com/t/ios-apprentice-3-page-260/15740 "2016-06-10T13:28:02Z")

</div>

In the start of the Back to Black section it has ! Open the storyboard and go to the Current Location View Controller. Select the top-level view and change its Background Color to Black Color. ! Select all the labels …

---

## [Tutorial 2 - Checklists p. 95 UIBarButtonItem](https://forums.kodeco.com/t/tutorial-2-checklists-p-95-uibarbuttonitem/15650)

<div class="topic-metadata">

**Author:** [@n0rthk1n9](https://forums.kodeco.com/u/n0rthk1n9)\
**Replies:** 8\
**Last updated:** [June 9, 2016, 6:45pm UTC](https://forums.kodeco.com/t/tutorial-2-checklists-p-95-uibarbuttonitem/15650 "2016-06-09T18:45:52Z")

</div>

Hey, firstly thank you for your really nice book! Secondly I am having a little problem with this UIBarButtonItem represented by the doneBarButton in the AddItemViewController. Everything is working like a charm, except…

---

## [Checklist inserting date picker row](https://forums.kodeco.com/t/checklist-inserting-date-picker-row/14741)

<div class="topic-metadata">

**Author:** [@gkohler79](https://forums.kodeco.com/u/gkohler79)\
**Replies:** 2\
**Last updated:** [June 8, 2016, 7:16pm UTC](https://forums.kodeco.com/t/checklist-inserting-date-picker-row/14741 "2016-06-08T19:16:52Z")

</div>

I’ve been messing around with the Checklist tutorial app and have run into a strange issue that I could use some assistance with. Here is what I attempted to do. I wanted to add a few more fields to the data model, the…

---

## [Future upgrades](https://forums.kodeco.com/t/future-upgrades/15641)

<div class="topic-metadata">

**Author:** [@jonny](https://forums.kodeco.com/u/jonny)\
**Replies:** 4\
**Last updated:** [June 8, 2016, 6:50pm UTC](https://forums.kodeco.com/t/future-upgrades/15641 "2016-06-08T18:50:27Z")

</div>

Hi I’m looking at the iOS apprentice and just wondering when Swift 3 comes out, which in assuming is fairly imminent, if you’ve got the Swift 2.2 version would you have to buy the version for Swift 3 as well. So should …

---

## [If you had to add a login screen to "MyApplications', how would you go about it?](https://forums.kodeco.com/t/if-you-had-to-add-a-login-screen-to-myapplications-how-would-you-go-about-it/15624)

<div class="topic-metadata">

**Author:** [@pgmavro79](https://forums.kodeco.com/u/pgmavro79)\
**Replies:** 0\
**Last updated:** [June 7, 2016, 7:55am UTC](https://forums.kodeco.com/t/if-you-had-to-add-a-login-screen-to-myapplications-how-would-you-go-about-it/15624 "2016-06-07T07:55:54Z")

</div>

Continuing the discussion from Login Controller segue to TabBar Controller keeps crashing in 'MyLocations': I know you have to change the root viewcontroller from tabBarController to loginController but I’m having troub…

---

## [Login Controller segue to TabBar Controller keeps crashing in 'MyLocations'](https://forums.kodeco.com/t/login-controller-segue-to-tabbar-controller-keeps-crashing-in-mylocations/15496)

<div class="topic-metadata">

**Author:** [@pgmavro79](https://forums.kodeco.com/u/pgmavro79)\
**Replies:** 7\
**Last updated:** [June 6, 2016, 12:55pm UTC](https://forums.kodeco.com/t/login-controller-segue-to-tabbar-controller-keeps-crashing-in-mylocations/15496 "2016-06-06T12:55:48Z")

</div>

I’m trying to attach a login controller to tabbar controller. My Login Controller modal segue to TabBar Controller keeps crashing in ‘MyLocations’; the file I’m working with from iOS Apprentice. Any suggestions would be …

---

## [StoreSearch: can't place segmented control in navigationbar](https://forums.kodeco.com/t/storesearch-cant-place-segmented-control-in-navigationbar/15532)

<div class="topic-metadata">

**Author:** [@thomasblom](https://forums.kodeco.com/u/thomasblom)\
**Replies:** 2\
**Last updated:** [June 4, 2016, 7:04pm UTC](https://forums.kodeco.com/t/storesearch-cant-place-segmented-control-in-navigationbar/15532 "2016-06-04T19:04:48Z")

</div>

I’m on p116 in the v4.1 tutorial in which we place a NavigationBar into the view controller and then are told to put a segmented control onto the navigation bar - on the title. I can’t seem to do this. It always gets p…

---

## [Checklists App - ConfigureCheckmarkForCell Method](https://forums.kodeco.com/t/checklists-app-configurecheckmarkforcell-method/15434)

<div class="topic-metadata">

**Author:** [@rohan314](https://forums.kodeco.com/u/rohan314)\
**Replies:** 4\
**Last updated:** [June 2, 2016, 7:56pm UTC](https://forums.kodeco.com/t/checklists-app-configurecheckmarkforcell-method/15434 "2016-06-02T19:56:59Z")

</div>

Hello, I have a question about the ConfigureCheckmarkForCell Method that is described in the checklists tutorial: (at the time of posting this I have just reached the ‘Arrays’ part of the tutorial) This method is call…

---

## [Tutorial 2 - Error at super.init(coder: aDecoder)](https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326)

<div class="topic-metadata">

**Author:** [@djcirello](https://forums.kodeco.com/u/djcirello)\
**Replies:** 2\
**Last updated:** [May 31, 2016, 4:18am UTC](https://forums.kodeco.com/t/tutorial-2-error-at-super-init-coder-adecoder/15326 "2016-05-31T04:18:59Z")

</div>

Hello, Working my way through the 2nd Tutorial and I’m coming across the following error when trying to call the super. “Property ‘self.row0item’ not initialized at super.init call”. Code below. Can someone point me in…

---

## [Re-purchase of books due to new updates](https://forums.kodeco.com/t/re-purchase-of-books-due-to-new-updates/11997)

<div class="topic-metadata">

**Author:** [@dehrab](https://forums.kodeco.com/u/dehrab)\
**Replies:** 5\
**Last updated:** [May 23, 2016, 10:11pm UTC](https://forums.kodeco.com/t/re-purchase-of-books-due-to-new-updates/11997 "2016-05-23T22:11:53Z")

</div>

Do I have to re purchase Apprentice in-order to receive updates. My last update was 16 September 2015. If I re purchase do I get a special discount. Note: I have almost purchased all the books in the store. Therefore it…

---

## [Checklists: Crash at tableView.insertRowsAtIndexPaths](https://forums.kodeco.com/t/checklists-crash-at-tableview-insertrowsatindexpaths/14920)

<div class="topic-metadata">

**Author:** [@julzelements](https://forums.kodeco.com/u/julzelements)\
**Replies:** 1\
**Last updated:** [May 23, 2016, 4:58pm UTC](https://forums.kodeco.com/t/checklists-crash-at-tableview-insertrowsatindexpaths/14920 "2016-05-23T16:58:37Z")

</div>

Hi, I’m having trouble with adding a new cell to the table view. I get the following message: ‘NSInternalInconsistencyException’, reason: ‘attempt to insert row 5 into section 0, but there are only 5 rows in section 0 …

---

## [Backward segues or Action button segues?](https://forums.kodeco.com/t/backward-segues-or-action-button-segues/15040)

<div class="topic-metadata">

**Author:** [@kathesplace](https://forums.kodeco.com/u/kathesplace)\
**Replies:** 1\
**Last updated:** [May 19, 2016, 8:37pm UTC](https://forums.kodeco.com/t/backward-segues-or-action-button-segues/15040 "2016-05-19T20:37:13Z")

</div>

What is the difference between performing a “backwards” segue directly in the storyboard, or hooking up buttons to action methods such as the done and cancel buttons? Is one method better then the other? thanks, Kathe …

---

## [Running Bull's Eye on iPhone 6](https://forums.kodeco.com/t/running-bulls-eye-on-iphone-6/14793)

<div class="topic-metadata">

**Author:** [@b\_naylor](https://forums.kodeco.com/u/b_naylor)\
**Replies:** 4\
**Last updated:** [May 19, 2016, 10:37am UTC](https://forums.kodeco.com/t/running-bulls-eye-on-iphone-6/14793 "2016-05-19T10:37:15Z")

</div>

Hi, I have just finished building the Bull’s Eye app (great tutorial by the way!) but when I try to run it on my iPhone 6 I get the error shown in the attached screenshot. I have tried running the completed app from the…

---

## [Checklist (07 - Lists) source code crash on list select](https://forums.kodeco.com/t/checklist-07-lists-source-code-crash-on-list-select/14952)

<div class="topic-metadata">

**Author:** [@kuzuri](https://forums.kodeco.com/u/kuzuri)\
**Replies:** 3\
**Last updated:** [May 18, 2016, 6:33pm UTC](https://forums.kodeco.com/t/checklist-07-lists-source-code-crash-on-list-select/14952 "2016-05-18T18:33:33Z")

</div>

I’m having issues with my app crashing about half way through the Checklists tutorial. It started sometime for me while building from the equivalent of the source code file (06 - Saving and Loading) but before I was at …

---

## [StoreSearch: confused by use of CGRect.zero](https://forums.kodeco.com/t/storesearch-confused-by-use-of-cgrect-zero/14950)

<div class="topic-metadata">

**Author:** [@krskrft](https://forums.kodeco.com/u/krskrft)\
**Replies:** 2\
**Last updated:** [May 18, 2016, 3:33pm UTC](https://forums.kodeco.com/t/storesearch-confused-by-use-of-cgrect-zero/14950 "2016-05-18T15:33:31Z")

</div>

On page 45, we override awakeFromNib() in the SearchResultCell class in order to customize the cell selection color: override func awakeFromNib() { super.awakeFromNib() let selectedView = UIView(frame: CGRect.z…

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

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