# iOS Apprentice

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

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

**Page:** 13

---

## [Chapter 18 - Show new list](https://forums.kodeco.com/t/chapter-18-show-new-list/42684)

<div class="topic-metadata">

**Author:** [@h4pdx](https://forums.kodeco.com/u/h4pdx)\
**Replies:** 9\
**Last updated:** [May 19, 2018, 10:49pm UTC](https://forums.kodeco.com/t/chapter-18-show-new-list/42684 "2018-05-19T22:49:18Z")

</div>

In chapter 18, where we add the code to perform a segue to the last opened list before the app was terminated, I wanted to try to go a little further and figure out if I could have the app perform a segue to the “ShowChe…

---

## [Using apps created with the iOS apprentice on the iPhone](https://forums.kodeco.com/t/using-apps-created-with-the-ios-apprentice-on-the-iphone/42459)

<div class="topic-metadata">

**Author:** [@edouard](https://forums.kodeco.com/u/edouard)\
**Replies:** 2\
**Last updated:** [May 12, 2018, 9:24am UTC](https://forums.kodeco.com/t/using-apps-created-with-the-ios-apprentice-on-the-iphone/42459 "2018-05-12T09:24:18Z")

</div>

Hi, I am currently reading the iOS apprentice and having a really fun time learning how to program apps for the iPhone (I had no real CS background beforehand). The book is very well written and easy to follow, you guys…

---

## [Why checkList when hide checkmark when row0check = false](https://forums.kodeco.com/t/why-checklist-when-hide-checkmark-when-row0check-false/42451)

<div class="topic-metadata">

**Author:** [@ceoit](https://forums.kodeco.com/u/ceoit)\
**Replies:** 1\
**Last updated:** [May 10, 2018, 10:53am UTC](https://forums.kodeco.com/t/why-checklist-when-hide-checkmark-when-row0check-false/42451 "2018-05-10T10:53:04Z")

</div>

row0check = false … if indexPath.row == 0 { row0checked = !row0checked if row0checked { cell.accessoryType = .checkmark } else { cell.accessoryType = .none } } Here my code. When i run app, checkmark’s…

---

## [V6.0, ch17, pg 385. "Add" button on AllLists screen greys out after first entry](https://forums.kodeco.com/t/v6-0-ch17-pg-385-add-button-on-alllists-screen-greys-out-after-first-entry/41850)

<div class="topic-metadata">

**Author:** [@westdev](https://forums.kodeco.com/u/westdev)\
**Replies:** 4\
**Last updated:** [May 9, 2018, 8:12pm UTC](https://forums.kodeco.com/t/v6-0-ch17-pg-385-add-button-on-alllists-screen-greys-out-after-first-entry/41850 "2018-05-09T20:12:12Z")

</div>

As far as I can tell, on an empty beginning list, when the first checklist is added using the ‘Add’ button at the top, after the title of the first checklist is confirmed, when it goes back to the All Checklists screen, …

---

## [performingReverseGeocoding](https://forums.kodeco.com/t/performingreversegeocoding/42353)

<div class="topic-metadata">

**Author:** [@mamerlot](https://forums.kodeco.com/u/mamerlot)\
**Replies:** 2\
**Last updated:** [May 8, 2018, 9:39am UTC](https://forums.kodeco.com/t/performingreversegeocoding/42353 "2018-05-08T09:39:36Z")

</div>

Page 675: MyLocations Hi, I’m wondering why performingReverseGeocoding is true when entering this condition “if !performingReverseGeocoding {” because it was never set to true in the code earlier Thanks

---

## [\[SOLVED\] MyLocations: why create a region from a region for annotations?](https://forums.kodeco.com/t/solved-mylocations-why-create-a-region-from-a-region-for-annotations/41281)

<div class="topic-metadata">

**Author:** [@flanker](https://forums.kodeco.com/u/flanker)\
**Replies:** 1\
**Last updated:** [April 29, 2018, 8:20pm UTC](https://forums.kodeco.com/t/solved-mylocations-why-create-a-region-from-a-region-for-annotations/41281 "2018-04-29T20:20:54Z")

</div>

When working out the map areas that needs to be displayed for the \[MKAnnotation\] the approach is… func region(for annotations: \[MKAnnotation\]) -\> MKCoordinateRegion { // maths to work out top-left & bottom-right let e…

---

## [Books, iOS Apprentice V6, BullsEye, Accessibility and clarification of step](https://forums.kodeco.com/t/books-ios-apprentice-v6-bullseye-accessibility-and-clarification-of-step/41830)

<div class="topic-metadata">

**Author:** [@jrw2](https://forums.kodeco.com/u/jrw2)\
**Replies:** 3\
**Last updated:** [April 23, 2018, 4:19am UTC](https://forums.kodeco.com/t/books-ios-apprentice-v6-bullseye-accessibility-and-clarification-of-step/41830 "2018-04-23T04:19:37Z")

</div>

I am a totally blind software engineer with many years of experience in coding and a couple of published book sections and articles to my credit. I have taken an iOS course so I’m not completely new to iOS. I am having…

---

## [Typos in book 6.0](https://forums.kodeco.com/t/typos-in-book-6-0/36985)

<div class="topic-metadata">

**Author:** [@hyperknot](https://forums.kodeco.com/u/hyperknot)\
**Replies:** 34\
**Last updated:** [April 22, 2018, 1:30am UTC](https://forums.kodeco.com/t/typos-in-book-6-0/36985 "2018-04-22T01:30:26Z")

</div>

Nothing major, but I thought it’s good if I start noting them. Page 714, return imageView.hidden ? 44 : 280 → isHidden Page 714, there tmust be → must

---

## [Chapter 3 Page 70- Cannot click on the "Hit Me" button](https://forums.kodeco.com/t/chapter-3-page-70-cannot-click-on-the-hit-me-button/41808)

<div class="topic-metadata">

**Author:** [@lilyzhu43](https://forums.kodeco.com/u/lilyzhu43)\
**Replies:** 4\
**Last updated:** [April 21, 2018, 2:20pm UTC](https://forums.kodeco.com/t/chapter-3-page-70-cannot-click-on-the-hit-me-button/41808 "2018-04-21T14:20:42Z")

</div>

In the end of chapter 3, I changed my code following the book, and I’m able to run the program. However, whenever I click on the “Hit Me” button, the program stops, and lead me back to Xcode with this showing: Why is t…

---

## [Okay to upload modified projects to GitHub?](https://forums.kodeco.com/t/okay-to-upload-modified-projects-to-github/41804)

<div class="topic-metadata">

**Author:** [@ryansobol](https://forums.kodeco.com/u/ryansobol)\
**Replies:** 1\
**Last updated:** [April 21, 2018, 2:42am UTC](https://forums.kodeco.com/t/okay-to-upload-modified-projects-to-github/41804 "2018-04-21T02:42:26Z")

</div>

Is it within the book’s license of “personal use” to be able to upload modified versions of the book’s projects to a public repository on GitHub? I’d like to use these works to showcase my expertise, coding style, and cr…

---

## [V5,StoreSearch,Making it asynchronous](https://forums.kodeco.com/t/v5-storesearch-making-it-asynchronous/41663)

<div class="topic-metadata">

**Author:** [@milad](https://forums.kodeco.com/u/milad)\
**Replies:** 1\
**Last updated:** [April 17, 2018, 8:37am UTC](https://forums.kodeco.com/t/v5-storesearch-making-it-asynchronous/41663 "2018-04-17T08:37:28Z")

</div>

Hi, I did exactly same as book , is something changed in Xcode or Swift,or we should deny this error?

---

## [Getting a Notification on the same item a second time](https://forums.kodeco.com/t/getting-a-notification-on-the-same-item-a-second-time/41434)

<div class="topic-metadata">

**Author:** [@dennis07733](https://forums.kodeco.com/u/dennis07733)\
**Replies:** 2\
**Last updated:** [April 11, 2018, 1:52am UTC](https://forums.kodeco.com/t/getting-a-notification-on-the-same-item-a-second-time/41434 "2018-04-11T01:52:15Z")

</div>

I have put up notifications (Capter 19 IOS Apprentice) on an item wit a Month, day out several days. Te first notification comes back fine. I should get a notification on the next days at the same time until the date of…

---

## [MyLocations for iPhoneX](https://forums.kodeco.com/t/mylocations-for-iphonex/41308)

<div class="topic-metadata">

**Author:** [@tenryu](https://forums.kodeco.com/u/tenryu)\
**Replies:** 2\
**Last updated:** [April 6, 2018, 12:54pm UTC](https://forums.kodeco.com/t/mylocations-for-iphonex/41308 "2018-04-06T12:54:06Z")

</div>

Just finished the tutorial from the book. When I tried to create my own screenshots to use as Launch Images (since I used slightly different colors for the app), I realized that for the iPhoneX app looks like this: I…

---

## [MyLocations: p253 (243) Aspect Fill thumbnails \[SOLVED\] - Elegant Solution](https://forums.kodeco.com/t/mylocations-p253-243-aspect-fill-thumbnails-solved-elegant-solution/36828)

<div class="topic-metadata">

**Author:** [@anatoliy](https://forums.kodeco.com/u/anatoliy)\
**Replies:** 1\
**Last updated:** [April 5, 2018, 11:24am UTC](https://forums.kodeco.com/t/mylocations-p253-243-aspect-fill-thumbnails-solved-elegant-solution/36828 "2018-04-05T11:24:16Z")

</div>

Continuing former discussions about changing the resizing rule of the thumbnail to Aspect Fill There’s very elegant solution with only 4 lines changed inside the method: func resizedImage(withBounds bounds: CGSize)…

---

## [MyLocations Exercise: Dynamic UITableViewCell Height without AutoLayout? (Partial Solution)](https://forums.kodeco.com/t/mylocations-exercise-dynamic-uitableviewcell-height-without-autolayout-partial-solution/12814)

<div class="topic-metadata">

**Author:** [@jas0nk](https://forums.kodeco.com/u/jas0nk)\
**Replies:** 3\
**Last updated:** [April 4, 2018, 4:56am UTC](https://forums.kodeco.com/t/mylocations-exercise-dynamic-uitableviewcell-height-without-autolayout-partial-solution/12814 "2018-04-04T04:56:22Z")

</div>

Problem I currently return a global var holding the correct heightForRowAtIndexPath, however, the image no longer pins itself to the top left corner. The UIImageView is pinned to the top left using the size inspector. #…

---

## [Protocol Delegate not being triggered](https://forums.kodeco.com/t/protocol-delegate-not-being-triggered/40904)

<div class="topic-metadata">

**Author:** [@chicago](https://forums.kodeco.com/u/chicago)\
**Replies:** 5\
**Last updated:** [April 4, 2018, 12:41am UTC](https://forums.kodeco.com/t/protocol-delegate-not-being-triggered/40904 "2018-04-04T00:41:30Z")

</div>

I thought I understood how custom protocol delegates worked, but I think I was mistaken. I have an app that has four (4) tab bar buttons linked to view-A, view-B, view-C and view-D. The view-A has a child view controll…

---

## [Checklists v6.0 - IconPickerViewController back button is "\< Add Checklist"](https://forums.kodeco.com/t/checklists-v6-0-iconpickerviewcontroller-back-button-is-add-checklist/41176)

<div class="topic-metadata">

**Author:** [@avantjer](https://forums.kodeco.com/u/avantjer)\
**Replies:** 2\
**Last updated:** [April 3, 2018, 4:54am UTC](https://forums.kodeco.com/t/checklists-v6-0-iconpickerviewcontroller-back-button-is-add-checklist/41176 "2018-04-03T04:54:40Z")

</div>

On page 425-426, the screenshots show that the Icon Picker’s back button is “\< Back”. …but after following the tutorial, my Icon Picker’s back button is “\< Add Checklist”. I did add the segue by ctrl-dragging from Tabl…

---

## [Chapter 14, Page 307 - Cannot invoke 'index' with an argument list of type '(of: ChecklistItem)'](https://forums.kodeco.com/t/chapter-14-page-307-cannot-invoke-index-with-an-argument-list-of-type-of-checklistitem/41144)

<div class="topic-metadata">

**Author:** [@remm](https://forums.kodeco.com/u/remm)\
**Replies:** 3\
**Last updated:** [April 2, 2018, 1:15pm UTC](https://forums.kodeco.com/t/chapter-14-page-307-cannot-invoke-index-with-an-argument-list-of-type-of-checklistitem/41144 "2018-04-02T13:15:41Z")

</div>

I’m trying to implement the delegate method for editing checklist items but i get the error - Cannot invoke ‘index’ with an argument list of type ‘(of: ChecklistItem)’ I did some testing in a playground with arrays and …

---

## [V6 chapter 10 func configureCheckmark compiles but breaks function](https://forums.kodeco.com/t/v6-chapter-10-func-configurecheckmark-compiles-but-breaks-function/40613)

<div class="topic-metadata">

**Author:** [@wizarddr](https://forums.kodeco.com/u/wizarddr)\
**Replies:** 3\
**Last updated:** [March 22, 2018, 11:21am UTC](https://forums.kodeco.com/t/v6-chapter-10-func-configurecheckmark-compiles-but-breaks-function/40613 "2018-03-22T11:21:42Z")

</div>

Before I add configureCheckmark, the code works, despite the book saying it shouldn’t. Then, when I “correct” the error by adding the function configureCheckmark, the code compiles, but now I have to click twice on a row…

---

## [V5 MyLocations -Saving the locations- Date Error](https://forums.kodeco.com/t/v5-mylocations-saving-the-locations-date-error/40372)

<div class="topic-metadata">

**Author:** [@milad](https://forums.kodeco.com/u/milad)\
**Replies:** 2\
**Last updated:** [March 17, 2018, 10:56am UTC](https://forums.kodeco.com/t/v5-mylocations-saving-the-locations-date-error/40372 "2018-03-17T10:56:35Z")

</div>

when I’m trying to save date, Xcode gives me this error "Cannot assign value of type ‘Date’ to type ‘Data’ "

---

## [Chapter 12, Clear Button for the text field](https://forums.kodeco.com/t/chapter-12-clear-button-for-the-text-field/40345)

<div class="topic-metadata">

**Author:** [@tenryu](https://forums.kodeco.com/u/tenryu)\
**Replies:** 3\
**Last updated:** [March 16, 2018, 10:45am UTC](https://forums.kodeco.com/t/chapter-12-clear-button-for-the-text-field/40345 "2018-03-16T10:45:10Z")

</div>

Hi there, just finished the 12th chapter of the book (6th edition), thanks to the competent authors everything described was very clear and helpful! I tried to play around with the code and storyboard options, and when…

---

## [V6, Ch 13, change accessory of cell to detail disclosure](https://forums.kodeco.com/t/v6-ch-13-change-accessory-of-cell-to-detail-disclosure/40139)

<div class="topic-metadata">

**Author:** [@topper99](https://forums.kodeco.com/u/topper99)\
**Replies:** 2\
**Last updated:** [March 16, 2018, 8:03am UTC](https://forums.kodeco.com/t/v6-ch-13-change-accessory-of-cell-to-detail-disclosure/40139 "2018-03-16T08:03:04Z")

</div>

Hi, So i’m going through the V6 version of IOS apprentice. I’ve got to Ch 13 and am trying to update my cell to have a detail disclosure from the check mark. Despite making the change in the Attributes inspector to show…

---

## [Editing image with UIImagePickerController](https://forums.kodeco.com/t/editing-image-with-uiimagepickercontroller/40271)

<div class="topic-metadata">

**Author:** [@frank\_lu](https://forums.kodeco.com/u/frank_lu)\
**Replies:** 2\
**Last updated:** [March 14, 2018, 2:03am UTC](https://forums.kodeco.com/t/editing-image-with-uiimagepickercontroller/40271 "2018-03-14T02:03:18Z")

</div>

Section 3, page 709, the 3rd paragraph states, The info dictionary contains data describing the image that the user picked. You use the UIImagePickerControllerEditedImage key to retrieve a UIImage object that contains th…

---

## [Landscape view of StoreSearch for iPhoneX](https://forums.kodeco.com/t/landscape-view-of-storesearch-for-iphonex/40134)

<div class="topic-metadata">

**Author:** [@ericlm](https://forums.kodeco.com/u/ericlm)\
**Replies:** 4\
**Last updated:** [March 8, 2018, 11:19am UTC](https://forums.kodeco.com/t/landscape-view-of-storesearch-for-iphonex/40134 "2018-03-08T11:19:10Z")

</div>

Hello, I currently have an issue with the landscape view on iPhone X to display the search results. The switch/case state doesn’t handle the width of the iPhone X view, so I don’t know which values to use for the buttons…

---

## [Checklists bonus exercise Chapter 20](https://forums.kodeco.com/t/checklists-bonus-exercise-chapter-20/38230)

<div class="topic-metadata">

**Author:** [@fadewave](https://forums.kodeco.com/u/fadewave)\
**Replies:** 7\
**Last updated:** [March 6, 2018, 2:20pm UTC](https://forums.kodeco.com/t/checklists-bonus-exercise-chapter-20/38230 "2018-03-06T14:20:46Z")

</div>

Has anyone done these bonus objectives at the end of Chapter 20? I’m trying to sort the checklist items by due date but I cannot figure it out. I created another DataModel function that is almost identical to the sortChe…

---

## [iOS Apprentice book](https://forums.kodeco.com/t/ios-apprentice-book/39824)

<div class="topic-metadata">

**Author:** [@kary993](https://forums.kodeco.com/u/kary993)\
**Replies:** 2\
**Last updated:** [February 27, 2018, 12:27am UTC](https://forums.kodeco.com/t/ios-apprentice-book/39824 "2018-02-27T00:27:29Z")

</div>

I have competed the book and want to provide my basic review of the book and the experience going through the book. First off, you did an excellent job of presenting very complex material, frameworks, language structure…

---

## [Chapter 39 Landscape artwork resize](https://forums.kodeco.com/t/chapter-39-landscape-artwork-resize/39652)

<div class="topic-metadata">

**Author:** [@scruffyhipster](https://forums.kodeco.com/u/scruffyhipster)\
**Replies:** 2\
**Last updated:** [February 27, 2018, 4:29am UTC](https://forums.kodeco.com/t/chapter-39-landscape-artwork-resize/39652 "2018-02-27T04:29:30Z")

</div>

Has anyone else managed to do the image resize exercise at the end of the chapter 39? I think I have the solution, and it seems to work on different simulators, but I don’t know if I’m overlooking anything or have misse…

---

## [Get Location fails after using other functions](https://forums.kodeco.com/t/get-location-fails-after-using-other-functions/3919)

<div class="topic-metadata">

**Author:** [@leelarson](https://forums.kodeco.com/u/leelarson)\
**Replies:** 11\
**Last updated:** [February 27, 2018, 1:18am UTC](https://forums.kodeco.com/t/get-location-fails-after-using-other-functions/3919 "2018-02-27T01:18:13Z")

</div>

I have finished the My Locations app upto the last section. If I start the App and do get locations, it finds my location. Then I can press Stop, then get my locations again and it works. If I goto Map, pick a location…

---

## [Chapter 4 : Can't drag the Outlet of the slider to View Controller](https://forums.kodeco.com/t/chapter-4-cant-drag-the-outlet-of-the-slider-to-view-controller/39531)

<div class="topic-metadata">

**Author:** [@anthonyverco](https://forums.kodeco.com/u/anthonyverco)\
**Replies:** 31\
**Last updated:** [February 25, 2018, 10:40pm UTC](https://forums.kodeco.com/t/chapter-4-cant-drag-the-outlet-of-the-slider-to-view-controller/39531 "2018-02-25T22:40:04Z")

</div>

Hi everyone, I am a beginner and I have a problem in my code : I can’t drag the outlet of the slider to view controller (I can’t select it). I checked my code and it seems good to me but I think I missed something. Here…

---

## [A sync networking](https://forums.kodeco.com/t/a-sync-networking/39569)

<div class="topic-metadata">

**Author:** [@kary993](https://forums.kodeco.com/u/kary993)\
**Replies:** 5\
**Last updated:** [February 20, 2018, 9:19pm UTC](https://forums.kodeco.com/t/a-sync-networking/39569 "2018-02-20T21:19:21Z")

</div>

I must say as I read the online fourth app and the discussion about poorly written apps that use synchronous network communication I was just astounded. I look through many apps out there and found this was the case! I …

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

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