# iOS Apprentice

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

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

**Page:** 4

---

## [Chapter 9 Moving Checklist item](https://forums.kodeco.com/t/chapter-9-moving-checklist-item/104837)

<div class="topic-metadata">

**Author:** [@noah8610](https://forums.kodeco.com/u/noah8610)\
**Replies:** 1\
**Last updated:** [July 4, 2020, 2:42am UTC](https://forums.kodeco.com/t/chapter-9-moving-checklist-item/104837 "2020-07-04T02:42:11Z")

</div>

After completing Chapter 9 I tried moving checklist items. Any item for instance “Walk the dog”, if you try to move the item to be the last item, it wont allow and it will put the item at a random index. Why is that, pl…

---

## [Chapter 7 Can't tap "info" button twice](https://forums.kodeco.com/t/chapter-7-cant-tap-info-button-twice/104631)

<div class="topic-metadata">

**Author:** [@cstock](https://forums.kodeco.com/u/cstock)\
**Replies:** 1\
**Last updated:** [July 4, 2020, 2:29am UTC](https://forums.kodeco.com/t/chapter-7-cant-tap-info-button-twice/104631 "2020-07-04T02:29:12Z")

</div>

I found a bug in the Bullseye app in section 1. After inserting the navigation view and clicking the info button once, the application correctly moves to the about screen. However, after hitting the back button, the pres…

---

## [IOS Apprentice Chapter 34 Solutions for Exercise?](https://forums.kodeco.com/t/ios-apprentice-chapter-34-solutions-for-exercise/96549)

<div class="topic-metadata">

**Author:** [@matthewvee](https://forums.kodeco.com/u/matthewvee)\
**Replies:** 3\
**Last updated:** [July 4, 2020, 2:15am UTC](https://forums.kodeco.com/t/ios-apprentice-chapter-34-solutions-for-exercise/96549 "2020-07-04T02:15:20Z")

</div>

Here is what i have got it seems to work, has anyone got better? I have tried more complicated solutions for the NSUpdatedObjectsKey, but simply removing annotations then adding them worked the same, is this because it u…

---

## [Data not showing on navigation controller table view](https://forums.kodeco.com/t/data-not-showing-on-navigation-controller-table-view/104479)

<div class="topic-metadata">

**Author:** [@mmichel1](https://forums.kodeco.com/u/mmichel1)\
**Replies:** 5\
**Last updated:** [July 4, 2020, 2:14am UTC](https://forums.kodeco.com/t/data-not-showing-on-navigation-controller-table-view/104479 "2020-07-04T02:14:25Z")

</div>

I’m using the IOS apprentice book and I am in chapter 33 where you have to drag a navigation controller in the storyboard. I did all the step but still I can’t load the two labels in that table view cell… I have I reread…

---

## [Chapter 22: Adding a navigation button](https://forums.kodeco.com/t/chapter-22-adding-a-navigation-button/104420)

<div class="topic-metadata">

**Author:** [@evana.margain](https://forums.kodeco.com/u/evana.margain)\
**Replies:** 1\
**Last updated:** [July 4, 2020, 2:11am UTC](https://forums.kodeco.com/t/chapter-22-adding-a-navigation-button/104420 "2020-07-04T02:11:34Z")

</div>

Hello there! I am following the iOS apprentice Bullseye in UIKit, but when connecting the IBAction to the Reset button it won’t trigger the resetHighScores() method. Not sure if it’s an Xcode version bug… I’ve tried a c…

---

## [Chapter 36: Launch Images Source option](https://forums.kodeco.com/t/chapter-36-launch-images-source-option/96957)

<div class="topic-metadata">

**Author:** [@interactivexr](https://forums.kodeco.com/u/interactivexr)\
**Replies:** 3\
**Last updated:** [July 3, 2020, 12:13am UTC](https://forums.kodeco.com/t/chapter-36-launch-images-source-option/96957 "2020-07-03T00:13:56Z")

</div>

When I’m trying to add a set of images for launch screen, there is missing button “Use Assets Catalog”. I’m using Xcode 11.3.1 where App Icons and Launch Images section under General tab looks like this: Is this opti…

---

## [Failed to build ChecklistView.swift](https://forums.kodeco.com/t/failed-to-build-checklistview-swift/98229)

<div class="topic-metadata">

**Author:** [@kammahha](https://forums.kodeco.com/u/kammahha)\
**Replies:** 8\
**Last updated:** [July 2, 2020, 11:52pm UTC](https://forums.kodeco.com/t/failed-to-build-checklistview-swift/98229 "2020-07-02T23:52:11Z")

</div>

Tried a few times with different versions of the checklist from the source folders and without me making any changes to the source code I keep getting this error when I try to see the preview How can I fix it?

---

## [iOS Apprentice MyLocations code problems](https://forums.kodeco.com/t/ios-apprentice-mylocations-code-problems/94205)

<div class="topic-metadata">

**Author:** [@syktek](https://forums.kodeco.com/u/syktek)\
**Replies:** 2\
**Last updated:** [July 2, 2020, 11:44pm UTC](https://forums.kodeco.com/t/ios-apprentice-mylocations-code-problems/94205 "2020-07-02T23:44:31Z")

</div>

I entered all the code for MyLocations up to Locations Tab. The program compiles but it had a fatal error as indicated in my previous post viz In AppDelegate.swift var window: UIWindow? let tabController = window!.roo…

---

## [Passing the context from AppDelegate - Chapter 27 - Saving Locations](https://forums.kodeco.com/t/passing-the-context-from-appdelegate-chapter-27-saving-locations/94084)

<div class="topic-metadata">

**Author:** [@turon](https://forums.kodeco.com/u/turon)\
**Replies:** 5\
**Last updated:** [July 2, 2020, 11:41pm UTC](https://forums.kodeco.com/t/passing-the-context-from-appdelegate-chapter-27-saving-locations/94084 "2020-07-02T23:41:50Z")

</div>

Hi everyone, i’m having an issue with an UIWindow variable. In the Page 642, i need to pass the NSManagedObject from the AppDelegate. First i declared window : UIWindow? as an optional. Then how it says in the book, i d…

---

## [Chapter 13: Adding extensions to Checklist](https://forums.kodeco.com/t/chapter-13-adding-extensions-to-checklist/92837)

<div class="topic-metadata">

**Author:** [@interactivexr](https://forums.kodeco.com/u/interactivexr)\
**Replies:** 18\
**Last updated:** [July 2, 2020, 11:33pm UTC](https://forums.kodeco.com/t/chapter-13-adding-extensions-to-checklist/92837 "2020-07-02T23:33:53Z")

</div>

Problem 1: When I open resource folder for chapter 13 it looks like that: So there is no folder extensions. Workaround for problem 1: In same directory where resource folder is located, there is another folder call…

---

## [Update for Swift 5 and Xcode 11](https://forums.kodeco.com/t/update-for-swift-5-and-xcode-11/81095)

<div class="topic-metadata">

**Author:** [@drunneriv](https://forums.kodeco.com/u/drunneriv)\
**Replies:** 1\
**Last updated:** [July 2, 2020, 11:10pm UTC](https://forums.kodeco.com/t/update-for-swift-5-and-xcode-11/81095 "2020-07-02T23:10:19Z")

</div>

Earlier this year this question was asked and the answer implied that nothing would be updated until Xcode 11 is released. With the beta out, do you have an timeframe for the novice/beginner path to learn swift?

---

## [Chapter 27: Do I need to include Core Data when creating a project?](https://forums.kodeco.com/t/chapter-27-do-i-need-to-include-core-data-when-creating-a-project/110455)

<div class="topic-metadata">

**Author:** [@sergeytay](https://forums.kodeco.com/u/sergeytay)\
**Replies:** 1\
**Last updated:** [July 1, 2020, 3:14am UTC](https://forums.kodeco.com/t/chapter-27-do-i-need-to-include-core-data-when-creating-a-project/110455 "2020-07-01T03:14:39Z")

</div>

Unfortunately, nothing is said about this in the book. So is it necessary to include Сore Data in the project? This is a screen shot from a book. About Core Data does not say (

---

## [Chapter 9：Adding a table view](https://forums.kodeco.com/t/chapter-9-adding-a-table-view/112269)

<div class="topic-metadata">

**Author:** [@herbay](https://forums.kodeco.com/u/herbay)\
**Replies:** 3\
**Last updated:** [June 23, 2020, 5:18pm UTC](https://forums.kodeco.com/t/chapter-9-adding-a-table-view/112269 "2020-06-23T17:18:14Z")

</div>

My question is about Chapter 9：《Adding a table view》： Book says： Drag a Label from the Objects Library on to the white area in the table view representing the cell. Make sure the label spans the entire width of the …

---

## [Chapter 11：Navigation Controllers](https://forums.kodeco.com/t/chapter-11-navigation-controllers/112455)

<div class="topic-metadata">

**Author:** [@herbay](https://forums.kodeco.com/u/herbay)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 5:16pm UTC](https://forums.kodeco.com/t/chapter-11-navigation-controllers/112455 "2020-06-23T17:16:53Z")

</div>

My question in Chapter 11：Navigation Controllers when i write these function but the segue not appear “cancel” and “done”. i was settings “AddItem” is never but still large title, and in the interface builder was…

---

## [Chapter 22：Get Location Data](https://forums.kodeco.com/t/chapter-22-get-location-data/112595)

<div class="topic-metadata">

**Author:** [@herbay](https://forums.kodeco.com/u/herbay)\
**Replies:** 1\
**Last updated:** [June 23, 2020, 5:06pm UTC](https://forums.kodeco.com/t/chapter-22-get-location-data/112595 "2020-06-23T17:06:02Z")

</div>

let authStatus = CLLocationManager.authorizationStatus() if authStatus == .notDetermined { locationManager.requestWhenInUseAuthorization() return } Error： if authStatus == .notDetermined {：Expected declaration

---

## [Enhancing BullsEye](https://forums.kodeco.com/t/enhancing-bullseye/112255)

<div class="topic-metadata">

**Author:** [@rexorioko](https://forums.kodeco.com/u/rexorioko)\
**Replies:** 1\
**Last updated:** [June 20, 2020, 4:09pm UTC](https://forums.kodeco.com/t/enhancing-bullseye/112255 "2020-06-20T16:09:25Z")

</div>

Hi there, I’m thinking of adding a small feature to challenge myself. I want to start a new game after n number of rounds, for this I thought of doing the below: capture the value of specific UILabel Check if it’s gre…

---

## [Chapter 32: Window variable is now in Scene rather than app delegate file](https://forums.kodeco.com/t/chapter-32-window-variable-is-now-in-scene-rather-than-app-delegate-file/92576)

<div class="topic-metadata">

**Author:** [@george\_solorio](https://forums.kodeco.com/u/george_solorio)\
**Replies:** 28\
**Last updated:** [May 3, 2020, 9:31pm UTC](https://forums.kodeco.com/t/chapter-32-window-variable-is-now-in-scene-rather-than-app-delegate-file/92576 "2020-05-03T21:31:35Z")

</div>

While working on chapter 32, I noticed that the window variable was moved to the scene file rather than the AppDelegate file. If I forcefully added a UIWindow variable in AppDelegate, it would crash right after attemptin…

---

## [Chapter 37: UISearchBar Auto Layout Constraints](https://forums.kodeco.com/t/chapter-37-uisearchbar-auto-layout-constraints/105873)

<div class="topic-metadata">

**Author:** [@clarkesm](https://forums.kodeco.com/u/clarkesm)\
**Replies:** 3\
**Last updated:** [April 30, 2020, 6:06pm UTC](https://forums.kodeco.com/t/chapter-37-uisearchbar-auto-layout-constraints/105873 "2020-04-30T18:06:32Z")

</div>

I’m trying to set the position of the UISearchBar within the view, but Xcode doesn’t let me set any auto constraints. The image below is what I see when I try to set auto constraints on the UISearchBar. If it’s helpful…

---

## [Chapter 37: Unable to pin Search bar to top, left and right edges](https://forums.kodeco.com/t/chapter-37-unable-to-pin-search-bar-to-top-left-and-right-edges/106051)

<div class="topic-metadata">

**Author:** [@jvantoor](https://forums.kodeco.com/u/jvantoor)\
**Replies:** 2\
**Last updated:** [April 21, 2020, 2:03pm UTC](https://forums.kodeco.com/t/chapter-37-unable-to-pin-search-bar-to-top-left-and-right-edges/106051 "2020-04-21T14:03:58Z")

</div>

Chapter 39 instructs to pin the Search Bar to the top, left and right edges, but those options are not available to me. This result in layout problems when using the app on larger devices such as an iPhone 11.

---

## [Chapter 27: Core Location](https://forums.kodeco.com/t/chapter-27-core-location/94164)

<div class="topic-metadata">

**Author:** [@interactivexr](https://forums.kodeco.com/u/interactivexr)\
**Replies:** 2\
**Last updated:** [April 19, 2020, 8:23pm UTC](https://forums.kodeco.com/t/chapter-27-core-location/94164 "2020-04-19T20:23:19Z")

</div>

When we were using web view in bullseye app that was created with UIKit we have to add import WebKit statement to AboutViewController and then go under Project \> General \> Frameworks, Libraries, and Embedded Content to a…

---

## [Fascinated by MapKit, can some one guide on zoom](https://forums.kodeco.com/t/fascinated-by-mapkit-can-some-one-guide-on-zoom/94988)

<div class="topic-metadata">

**Author:** [@amitsrivastava](https://forums.kodeco.com/u/amitsrivastava)\
**Replies:** 2\
**Last updated:** [April 17, 2020, 1:08pm UTC](https://forums.kodeco.com/t/fascinated-by-mapkit-can-some-one-guide-on-zoom/94988 "2020-04-17T13:08:30Z")

</div>

Hi, I loved the material available here and in articles section at RW, i tried something very beginner level and was able to achieve some success with it , but what i need is to be able to zoom in on location if i keep …

---

## [Chapter 36 - UINavigationBar appearance proxy missing properties](https://forums.kodeco.com/t/chapter-36-uinavigationbar-appearance-proxy-missing-properties/104852)

<div class="topic-metadata">

**Author:** [@clarkesm](https://forums.kodeco.com/u/clarkesm)\
**Replies:** 3\
**Last updated:** [April 12, 2020, 2:59am UTC](https://forums.kodeco.com/t/chapter-36-uinavigationbar-appearance-proxy-missing-properties/104852 "2020-04-12T02:59:11Z")

</div>

I’m working on the UIAppearance section of chapter 36 and am trying to use the UINavigationBar appearance proxy to globally set the barTintColor property. The book uses the following code: UINavigationBar.appearance().…

---

## [Chapter 19- Adding the icons to the project](https://forums.kodeco.com/t/chapter-19-adding-the-icons-to-the-project/102400)

<div class="topic-metadata">

**Author:** [@vancouver](https://forums.kodeco.com/u/vancouver)\
**Replies:** 2\
**Last updated:** [April 9, 2020, 7:27am UTC](https://forums.kodeco.com/t/chapter-19-adding-the-icons-to-the-project/102400 "2020-04-09T07:27:55Z")

</div>

Hello everyone, i am struggling with chapter 19 - adding the Consulting to the project. i followed steps in the Book iOS Apprentice but when i run the code, it threw this error back \`Error decoding item array: The data…

---

## [Chapter 43 - Polish the Pop-Up](https://forums.kodeco.com/t/chapter-43-polish-the-pop-up/98663)

<div class="topic-metadata">

**Author:** [@mcneils](https://forums.kodeco.com/u/mcneils)\
**Replies:** 2\
**Last updated:** [April 9, 2020, 7:14am UTC](https://forums.kodeco.com/t/chapter-43-polish-the-pop-up/98663 "2020-04-09T07:14:20Z")

</div>

I’m confused as to how the addKeyFrame() arguments withRelativeStartTime and relativeDuration work? I keep playing around with the values and the animation still seems to behave the same. What I found interesting too is…

---

## [Chapter 7: General question about background](https://forums.kodeco.com/t/chapter-7-general-question-about-background/103920)

<div class="topic-metadata">

**Author:** [@chris-rw](https://forums.kodeco.com/u/chris-rw)\
**Replies:** 4\
**Last updated:** [April 7, 2020, 6:58pm UTC](https://forums.kodeco.com/t/chapter-7-general-question-about-background/103920 "2020-04-07T18:58:46Z")

</div>

I’m about to finish chapter 7 and my Bullseye app is working great. I’ve been fiddling around with some code to get a better idea of how things work and I’m confused about calling background(). The developer documentat…

---

## [Chp 41 - UIImageView extension for downloading images error](https://forums.kodeco.com/t/chp-41-uiimageview-extension-for-downloading-images-error/103167)

<div class="topic-metadata">

**Author:** [@malamin](https://forums.kodeco.com/u/malamin)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 9:41am UTC](https://forums.kodeco.com/t/chp-41-uiimageview-extension-for-downloading-images-error/103167 "2020-04-07T09:41:34Z")

</div>

I’m getting 2 errors on the following line: let data = try? Data(contentsOf: url),… Just adding the new file (UIImageView+DownloadImage.swift) to the project fires off the error. I even get them when I copy and paste th…

---

## [Chapter 08: Crossfade](https://forums.kodeco.com/t/chapter-08-crossfade/81807)

<div class="topic-metadata">

**Author:** [@maninsan](https://forums.kodeco.com/u/maninsan)\
**Replies:** 0\
**Last updated:** [September 15, 2019, 7:32pm UTC](https://forums.kodeco.com/t/chapter-08-crossfade/81807 "2019-09-15T19:32:04Z")

</div>

Hello there, Just noticed after completing Chapter 08 of iOS Apprentice that Crossfade animation applied only to Start Over is a bit strange with leaving myself with some feeling of incompleteness as I am not getting th…

---

## [Double length pseudolanguage?](https://forums.kodeco.com/t/double-length-pseudolanguage/95148)

<div class="topic-metadata">

**Author:** [@amitsrivastava](https://forums.kodeco.com/u/amitsrivastava)\
**Replies:** 2\
**Last updated:** [April 7, 2020, 9:17am UTC](https://forums.kodeco.com/t/double-length-pseudolanguage/95148 "2020-04-07T09:17:10Z")

</div>

Can any one please tell me how to use double length pseudolanguage, i tried going to product and edit scheme and change it to double length pseudolanguage, but it does not show on either a real device or simulator, i am …

---

## [Chapter 44 - Landscape](https://forums.kodeco.com/t/chapter-44-landscape/102990)

<div class="topic-metadata">

**Author:** [@mcneils](https://forums.kodeco.com/u/mcneils)\
**Replies:** 1\
**Last updated:** [April 6, 2020, 8:17am UTC](https://forums.kodeco.com/t/chapter-44-landscape/102990 "2020-04-06T08:17:59Z")

</div>

I’m trying to customize a scroll view for a horizontal view for iPhone 11. I want to have the right side rectangles further away from the top-notch which I have done. The problem is that if I do a hard scroll to the left…

---

## [Chapter 7 - NavigationView](https://forums.kodeco.com/t/chapter-7-navigationview/102206)

<div class="topic-metadata">

**Author:** [@mengjun81](https://forums.kodeco.com/u/mengjun81)\
**Replies:** 1\
**Last updated:** [April 5, 2020, 10:52pm UTC](https://forums.kodeco.com/t/chapter-7-navigationview/102206 "2020-04-05T22:52:18Z")

</div>

V8.1 P251 After adding AboutView.swift to Bullseye, we started to add a navigationView to the ContentView. Following the steps, I put in var body: some View { NavigationView { … }.navigationViewStyle(.stack) howev…

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

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