# iOS Apprentice

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

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

**Page:** 18

---

## [Tutorial 3: MyLocations app crashes PG 169](https://forums.kodeco.com/t/tutorial-3-mylocations-app-crashes-pg-169/30633)

<div class="topic-metadata">

**Author:** [@dgh789](https://forums.kodeco.com/u/dgh789)\
**Replies:** 1\
**Last updated:** [June 7, 2017, 2:45pm UTC](https://forums.kodeco.com/t/tutorial-3-mylocations-app-crashes-pg-169/30633 "2017-06-07T14:45:47Z")

</div>

MyLocations.zip (109.2 KB) Hi, Hoping someone can help me here. Im working my way through tutorial 3 in iOS Apprentice. I’ve got to page 169 where we’re asked to run the app. The app runs okay, but when I click the new…

---

## [It's been a while](https://forums.kodeco.com/t/its-been-a-while/30308)

<div class="topic-metadata">

**Author:** [@jujutouch](https://forums.kodeco.com/u/jujutouch)\
**Replies:** 1\
**Last updated:** [May 31, 2017, 6:34pm UTC](https://forums.kodeco.com/t/its-been-a-while/30308 "2017-05-31T18:34:32Z")

</div>

Hi All, I was one of the originals who got the extra chapters for the iOS Apprentice back in the day and I have returned to try to pick it up again. I noticed that this particular book is not in “My Products” list? Do I…

---

## [MyLocations - p.174 ... Issue with address label](https://forums.kodeco.com/t/mylocations-p-174-issue-with-address-label/30179)

<div class="topic-metadata">

**Author:** [@salanthonyc](https://forums.kodeco.com/u/salanthonyc)\
**Replies:** 4\
**Last updated:** [May 28, 2017, 9:32pm UTC](https://forums.kodeco.com/t/mylocations-p-174-issue-with-address-label/30179 "2017-05-28T21:32:01Z")

</div>

I’m on page 174 for the MyLocations tutorial and I am unable to get the GPS coordinates to show in the Address Label when there is no placemark. I quadruple-checked the code and outlet connections and everything is right…

---

## [Issue with adding description - MyLocations tutorial](https://forums.kodeco.com/t/issue-with-adding-description-mylocations-tutorial/30013)

<div class="topic-metadata">

**Author:** [@salanthonyc](https://forums.kodeco.com/u/salanthonyc)\
**Replies:** 2\
**Last updated:** [May 26, 2017, 8:27pm UTC](https://forums.kodeco.com/t/issue-with-adding-description-mylocations-tutorial/30013 "2017-05-26T20:27:47Z")

</div>

I opened the finished app provided with the source code in order to test it. Unfortunately, I am unable to add a description when I tag my location. The app is compiling fine with no errors or warnings. Has anybody else …

---

## [Share pinned locations with other users?](https://forums.kodeco.com/t/share-pinned-locations-with-other-users/29968)

<div class="topic-metadata">

**Author:** [@salanthonyc](https://forums.kodeco.com/u/salanthonyc)\
**Replies:** 1\
**Last updated:** [May 22, 2017, 2:38pm UTC](https://forums.kodeco.com/t/share-pinned-locations-with-other-users/29968 "2017-05-22T14:38:22Z")

</div>

I am currently working through the MyLocations tutorial in the iOS Apprentice book and I am curious if it is possible to add an interesting capability: I am curious if it is possible to create a back-end, perhaps using …

---

## [Xcode version 8.3 with iOS Apprentice Tutorials](https://forums.kodeco.com/t/xcode-version-8-3-with-ios-apprentice-tutorials/29852)

<div class="topic-metadata">

**Author:** [@salanthonyc](https://forums.kodeco.com/u/salanthonyc)\
**Replies:** 1\
**Last updated:** [May 21, 2017, 10:23am UTC](https://forums.kodeco.com/t/xcode-version-8-3-with-ios-apprentice-tutorials/29852 "2017-05-21T10:23:58Z")

</div>

I recently bought the iOS Apprentice PDF and I was wondering if I will run into compiling errors or warnings if I work through the tutorials using Xcode 8.3?

---

## [Tutorial 2: Editing existing checklist items. Where do you save edited ojbects to the items array?](https://forums.kodeco.com/t/tutorial-2-editing-existing-checklist-items-where-do-you-save-edited-ojbects-to-the-items-array/25167)

<div class="topic-metadata">

**Author:** [@sebirkli](https://forums.kodeco.com/u/sebirkli)\
**Replies:** 2\
**Last updated:** [January 14, 2017, 6:32pm UTC](https://forums.kodeco.com/t/tutorial-2-editing-existing-checklist-items-where-do-you-save-edited-ojbects-to-the-items-array/25167 "2017-01-14T18:32:24Z")

</div>

Hey all, could you pls help me to understand how existing items are saved in the var items: \[ChecklistItem\] array after they were edited? The delegate method in CheckListViewController is func addItemViewController(\_ …

---

## [MyLocations - Changing Photo Not Does Not Update Photo](https://forums.kodeco.com/t/mylocations-changing-photo-not-does-not-update-photo/29331)

<div class="topic-metadata">

**Author:** [@savagej](https://forums.kodeco.com/u/savagej)\
**Replies:** 5\
**Last updated:** [May 11, 2017, 7:59pm UTC](https://forums.kodeco.com/t/mylocations-changing-photo-not-does-not-update-photo/29331 "2017-05-11T19:59:26Z")

</div>

I have completed the MyLocations app all the way through the Photo Picker section, yet when I try to change the photo for my location, this change is not reflected. Other related functions seem to work fine. I can add a…

---

## [Tutorial 2 checklist Method Override](https://forums.kodeco.com/t/tutorial-2-checklist-method-override/29375)

<div class="topic-metadata">

**Author:** [@tmacka](https://forums.kodeco.com/u/tmacka)\
**Replies:** 1\
**Last updated:** [May 8, 2017, 12:17pm UTC](https://forums.kodeco.com/t/tutorial-2-checklist-method-override/29375 "2017-05-08T12:17:17Z")

</div>

Hi - I’m sure I’ve missed something simple, but I’m working through the beginning of this tutorial and am getting an error with this: override func tableView(\_ tableView: UITableView, cellForRowAt indexPath: IndexPath) …

---

## [iOS Apprentice - MyLocations - Ambiguous Reference to member LocationManager](https://forums.kodeco.com/t/ios-apprentice-mylocations-ambiguous-reference-to-member-locationmanager/29294)

<div class="topic-metadata">

**Author:** [@jdelatorre312](https://forums.kodeco.com/u/jdelatorre312)\
**Replies:** 0\
**Last updated:** [May 5, 2017, 12:30pm UTC](https://forums.kodeco.com/t/ios-apprentice-mylocations-ambiguous-reference-to-member-locationmanager/29294 "2017-05-05T12:30:53Z")

</div>

nvm i figured it out.

---

## [Checklist.plist](https://forums.kodeco.com/t/checklist-plist/29255)

<div class="topic-metadata">

**Author:** [@raphaelreiter](https://forums.kodeco.com/u/raphaelreiter)\
**Replies:** 1\
**Last updated:** [May 4, 2017, 6:35pm UTC](https://forums.kodeco.com/t/checklist-plist/29255 "2017-05-04T18:35:30Z")

</div>

Hi Guys, I cannot find the checklist.plist as it is instructed to do so page 265 (of the printed version) I have tried everything, but it’s just not there… Thanks for your help Raphael

---

## [SOLVED - Tutorial 4, StoreSearch, v5.0 - First tap on cell doesn't show detail pop-up](https://forums.kodeco.com/t/solved-tutorial-4-storesearch-v5-0-first-tap-on-cell-doesnt-show-detail-pop-up/29151)

<div class="topic-metadata">

**Author:** [@avantjer](https://forums.kodeco.com/u/avantjer)\
**Replies:** 2\
**Last updated:** [May 3, 2017, 1:15pm UTC](https://forums.kodeco.com/t/solved-tutorial-4-storesearch-v5-0-first-tap-on-cell-doesnt-show-detail-pop-up/29151 "2017-05-03T13:15:03Z")

</div>

On page 133, the instruction says: “Run the app again and tap a row to bring up the detail pop-up.” I find that the first tap on any cell does not bring up the detail pop-up. It’s not until I tap a second time, (on a d…

---

## [MyLocations exercise on page 211](https://forums.kodeco.com/t/mylocations-exercise-on-page-211/28977)

<div class="topic-metadata">

**Author:** [@syagaev](https://forums.kodeco.com/u/syagaev)\
**Replies:** 1\
**Last updated:** [May 1, 2017, 8:38am UTC](https://forums.kodeco.com/t/mylocations-exercise-on-page-211/28977 "2017-05-01T08:38:52Z")

</div>

Hello, i have stucked, can you please help me with this. As i understood the dictionary\[“inserted”\] return an array of objects type any, so i would like to downcast these array to \[Location\] and the just addAnnotations…

---

## [iOS Apprentice Checklists Tutorial: Confusion about language](https://forums.kodeco.com/t/ios-apprentice-checklists-tutorial-confusion-about-language/28447)

<div class="topic-metadata">

**Author:** [@akshay1337](https://forums.kodeco.com/u/akshay1337)\
**Replies:** 1\
**Last updated:** [April 24, 2017, 9:23pm UTC](https://forums.kodeco.com/t/ios-apprentice-checklists-tutorial-confusion-about-language/28447 "2017-04-24T21:23:35Z")

</div>

Hi, I am currently working on the Checklists App, and on Page 75, it says: Don’t type anything into the button’s Title field. The Cancel and Done buttons are built-in button types that automatically use the proper tex…

---

## [Part 3: Segue Transitions](https://forums.kodeco.com/t/part-3-segue-transitions/28806)

<div class="topic-metadata">

**Author:** [@mchartier](https://forums.kodeco.com/u/mchartier)\
**Replies:** 0\
**Last updated:** [April 24, 2017, 8:33pm UTC](https://forums.kodeco.com/t/part-3-segue-transitions/28806 "2017-04-24T20:33:01Z")

</div>

I bumped into this problem when I added the CategoryPickerViewController to my app. I think this may be a problem with iOS? So I just wanted to point this out and see if this makes sense to anyone. While I was working…

---

## [Can't launch app on Iphone](https://forums.kodeco.com/t/cant-launch-app-on-iphone/28715)

<div class="topic-metadata">

**Author:** [@derekm](https://forums.kodeco.com/u/derekm)\
**Replies:** 2\
**Last updated:** [April 24, 2017, 8:15am UTC](https://forums.kodeco.com/t/cant-launch-app-on-iphone/28715 "2017-04-24T08:15:12Z")

</div>

I had to upgrade to Sierra so that I could download the new xcode so that I could add the app and test on my iphone because it is 10.3.1. I had two errors when trying to add it to Iphone and was able to resolve it by do…

---

## [iOS Apprentice (StoreSearch) currency options](https://forums.kodeco.com/t/ios-apprentice-storesearch-currency-options/28727)

<div class="topic-metadata">

**Author:** [@hazman](https://forums.kodeco.com/u/hazman)\
**Replies:** 2\
**Last updated:** [April 24, 2017, 8:10am UTC](https://forums.kodeco.com/t/ios-apprentice-storesearch-currency-options/28727 "2017-04-24T08:10:46Z")

</div>

Hello, I am building and running this App on my phone from Australia. When I test it the prices come up as USD instead of AUD. Shouldn’t it know what currency to use by default? or must I set up the locality manually? T…

---

## [Part 2: Need to cleanup center.requestAuthorization?](https://forums.kodeco.com/t/part-2-need-to-cleanup-center-requestauthorization/28399)

<div class="topic-metadata">

**Author:** [@mchartier](https://forums.kodeco.com/u/mchartier)\
**Replies:** 1\
**Last updated:** [April 15, 2017, 12:53pm UTC](https://forums.kodeco.com/t/part-2-need-to-cleanup-center-requestauthorization/28399 "2017-04-15T12:53:20Z")

</div>

On page 258 of part we add a call to center.requestAuthorization() when the switch is toggled on. I assume this means we no longer need to call center.requestAuthorization() in the appDelegate method didFinishLaunchingW…

---

## [Part 2: Handle local notifications when app is running](https://forums.kodeco.com/t/part-2-handle-local-notifications-when-app-is-running/28400)

<div class="topic-metadata">

**Author:** [@mchartier](https://forums.kodeco.com/u/mchartier)\
**Replies:** 1\
**Last updated:** [April 15, 2017, 12:50pm UTC](https://forums.kodeco.com/t/part-2-handle-local-notifications-when-app-is-running/28400 "2017-04-15T12:50:20Z")

</div>

On page 237 we add a function to receive notifications: userNotificationCenter(willPresent notification) This function just prints a message to the console. I just finished part 2 but I never saw any instructions to g…

---

## [Part 2: Adding app icons](https://forums.kodeco.com/t/part-2-adding-app-icons/28368)

<div class="topic-metadata">

**Author:** [@mchartier](https://forums.kodeco.com/u/mchartier)\
**Replies:** 2\
**Last updated:** [April 14, 2017, 4:19pm UTC](https://forums.kodeco.com/t/part-2-adding-app-icons/28368 "2017-04-14T16:19:04Z")

</div>

On page 225 it says: Add these icons to the asset catalog (Assets.xcassets). Recall that icons go into the AppIcon section. Simply drag them from the Finder into the slots. Simply drag them into the slots you say. B…

---

## [Trouble adding AddItemViewControllerDelegate](https://forums.kodeco.com/t/trouble-adding-additemviewcontrollerdelegate/28327)

<div class="topic-metadata">

**Author:** [@pdenlinger](https://forums.kodeco.com/u/pdenlinger)\
**Replies:** 3\
**Last updated:** [April 14, 2017, 9:34am UTC](https://forums.kodeco.com/t/trouble-adding-additemviewcontrollerdelegate/28327 "2017-04-14T09:34:00Z")

</div>

I am having some trouble with adding the AddItemViewControllerDelegate on page 103 of Checklists. I have pasted in all the code from ChecklistViewController below, and have included the error messages in comments after t…

---

## [I did not grok the word grok](https://forums.kodeco.com/t/i-did-not-grok-the-word-grok/28332)

<div class="topic-metadata">

**Author:** [@mchartier](https://forums.kodeco.com/u/mchartier)\
**Replies:** 0\
**Last updated:** [April 12, 2017, 3:56pm UTC](https://forums.kodeco.com/t/i-did-not-grok-the-word-grok/28332 "2017-04-12T15:56:51Z")

</div>

Thank you iOS Apprentice for teaching me a new word in the English Language: grok I rarely come across a word I don’t already know, and this word is definitely one I plan to use a lot. Cool!

---

## [Help! Where can find an errata or quesitons/answers for IOS Apprentice for IOS 10, Swift 3](https://forums.kodeco.com/t/help-where-can-find-an-errata-or-quesitons-answers-for-ios-apprentice-for-ios-10-swift-3/28081)

<div class="topic-metadata">

**Author:** [@tac](https://forums.kodeco.com/u/tac)\
**Replies:** 1\
**Last updated:** [April 7, 2017, 10:37am UTC](https://forums.kodeco.com/t/help-where-can-find-an-errata-or-quesitons-answers-for-ios-apprentice-for-ios-10-swift-3/28081 "2017-04-07T10:37:46Z")

</div>

Where can I find discussion or errata for IOS Apprentice fifth edition book, for IOS 10, Xcode 8 and Swift 3? Checking forum with IOS V.5s, I found out their pages and discussion did not match with my book. I need to f…

---

## [iOS Apprentice v5.0 Minor Mistake in Tutorial 1](https://forums.kodeco.com/t/ios-apprentice-v5-0-minor-mistake-in-tutorial-1/28096)

<div class="topic-metadata">

**Author:** [@akshay1337](https://forums.kodeco.com/u/akshay1337)\
**Replies:** 2\
**Last updated:** [April 7, 2017, 10:22am UTC](https://forums.kodeco.com/t/ios-apprentice-v5-0-minor-mistake-in-tutorial-1/28096 "2017-04-07T10:22:01Z")

</div>

Hi, I was working on Tutorial 1: BullsEye App, and on Page 89, it says that: In showAlert(), there are six locals and you use three instance variables: And then on the next page it says that there are four of them. …

---

## [Apprentice Book Physical Binding Quality](https://forums.kodeco.com/t/apprentice-book-physical-binding-quality/27673)

<div class="topic-metadata">

**Author:** [@jonconley](https://forums.kodeco.com/u/jonconley)\
**Replies:** 2\
**Last updated:** [March 30, 2017, 4:12pm UTC](https://forums.kodeco.com/t/apprentice-book-physical-binding-quality/27673 "2017-03-30T16:12:49Z")

</div>

Has anyone else had an issue with the book’s bindings? I was going through my iOS Apprentice and the pages exactly in the middle aren’t even attached to the book itself. It doesn’t appear they even just came loose, I don…

---

## [Cant decode ChecklistItem](https://forums.kodeco.com/t/cant-decode-checklistitem/27518)

<div class="topic-metadata">

**Author:** [@puppet](https://forums.kodeco.com/u/puppet)\
**Replies:** 4\
**Last updated:** [March 26, 2017, 12:13pm UTC](https://forums.kodeco.com/t/cant-decode-checklistitem/27518 "2017-03-26T12:13:56Z")

</div>

Hello! Has anyone else bumped into this exception… Terminating app due to uncaught exception ‘NSInvalidUnarchiveOperationException’, reason: '\*\*\* -\[NSKeyedUnarchiver decodeObjectForKey:\]: cannot decode object of class…

---

## [Detail disclosure not presenting VC](https://forums.kodeco.com/t/detail-disclosure-not-presenting-vc/27477)

<div class="topic-metadata">

**Author:** [@puppet](https://forums.kodeco.com/u/puppet)\
**Replies:** 3\
**Last updated:** [March 24, 2017, 9:06pm UTC](https://forums.kodeco.com/t/detail-disclosure-not-presenting-vc/27477 "2017-03-24T21:06:19Z")

</div>

Hello! I’m on page 121 of iOS Apprentice(Tables) and everything works so far… kinda. The issue I’m having is a press on the detail disclosure (circle ‘i’ & chevron) isnt presenting the ViewController (which edits). A …

---

## [iOS Apprentice v5.0 minor mistake](https://forums.kodeco.com/t/ios-apprentice-v5-0-minor-mistake/20997)

<div class="topic-metadata">

**Author:** [@anastasioscho](https://forums.kodeco.com/u/anastasioscho)\
**Replies:** 3\
**Last updated:** [March 24, 2017, 9:49am UTC](https://forums.kodeco.com/t/ios-apprentice-v5-0-minor-mistake/20997 "2017-03-24T09:49:14Z")

</div>

Hi, I think the line below in MyLocations chapter in page 151: let paths = FileManager.default.urlsForDirectory(.documentDirectory, inDomains: .userDomainMask) has to change to: let paths = FileManager.default.urls(f…

---

## [Data Source theory question (Checklists)](https://forums.kodeco.com/t/data-source-theory-question-checklists/27351)

<div class="topic-metadata">

**Author:** [@muzafar](https://forums.kodeco.com/u/muzafar)\
**Replies:** 2\
**Last updated:** [March 21, 2017, 2:02pm UTC](https://forums.kodeco.com/t/data-source-theory-question-checklists/27351 "2017-03-21T14:02:45Z")

</div>

For context, this question is from page 20 - 23 of the second tutorial (checklists) When declaring the tableView(:numberOfRowsInSection:) and tableView(:cellForRowAt) what exactly are we doing ?? Below are my questions…

---

## [Checklists v5.0 Saving and Loading page 142-143](https://forums.kodeco.com/t/checklists-v5-0-saving-and-loading-page-142-143/27232)

<div class="topic-metadata">

**Author:** [@kizlov](https://forums.kodeco.com/u/kizlov)\
**Replies:** 2\
**Last updated:** [March 15, 2017, 3:20pm UTC](https://forums.kodeco.com/t/checklists-v5-0-saving-and-loading-page-142-143/27232 "2017-03-15T15:20:02Z")

</div>

Hello :slight\_smile: I have a problem that I can’t solve and can’t find solution for few hours. After adding: required init?(coder aDecoder: NSCoder) { items = ChecklistItem super.init(coder: aDecoder) loadChecklis…

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

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