# iOS Apprentice

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

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

**Page:** 22

---

## [Keyboard Pushing Up Text Fields](https://forums.kodeco.com/t/keyboard-pushing-up-text-fields/20899)

<div class="topic-metadata">

**Author:** [@mory](https://forums.kodeco.com/u/mory)\
**Replies:** 11\
**Last updated:** [October 25, 2016, 7:35am UTC](https://forums.kodeco.com/t/keyboard-pushing-up-text-fields/20899 "2016-10-25T07:35:28Z")

</div>

I am having an issue with the keyboard pushing up the text field out of view. When I close the keyboard or swipe down, the field comes back into view. It seems to go into affect when I pinned the field using auto layout

---

## [Ios Apprentice 1 - problem connecting UILabel to View Controller](https://forums.kodeco.com/t/ios-apprentice-1-problem-connecting-uilabel-to-view-controller/21517)

<div class="topic-metadata">

**Author:** [@elfo106](https://forums.kodeco.com/u/elfo106)\
**Replies:** 4\
**Last updated:** [October 22, 2016, 10:22pm UTC](https://forums.kodeco.com/t/ios-apprentice-1-problem-connecting-uilabel-to-view-controller/21517 "2016-10-22T22:22:39Z")

</div>

Good afternoon, I’m following the ios Apprentice v5 tutorial 1, and on page 67 I tells me to connect the targetLabel to the View Controller. For some reason xcode doesn’t let me. I already created the IBOutlet as I did…

---

## [Rows vs. Cells: Image in tutorial backwards?](https://forums.kodeco.com/t/rows-vs-cells-image-in-tutorial-backwards/21473)

<div class="topic-metadata">

**Author:** [@achibition](https://forums.kodeco.com/u/achibition)\
**Replies:** 7\
**Last updated:** [October 21, 2016, 9:46pm UTC](https://forums.kodeco.com/t/rows-vs-cells-image-in-tutorial-backwards/21473 "2016-10-21T21:46:55Z")

</div>

I may be showing my ignorance but in Checklists v5.0 on page 21 it would seem that the words in the image are backwards. The data source (View Controller) should be handing rows to TableView, not cells. So shouldn’t th…

---

## [MyLocations missing info.plist entry for camera usage(v5.0)](https://forums.kodeco.com/t/mylocations-missing-info-plist-entry-for-camera-usage-v5-0/21055)

<div class="topic-metadata">

**Author:** [@pdad04](https://forums.kodeco.com/u/pdad04)\
**Replies:** 2\
**Last updated:** [October 19, 2016, 6:02am UTC](https://forums.kodeco.com/t/mylocations-missing-info-plist-entry-for-camera-usage-v5-0/21055 "2016-10-19T06:02:02Z")

</div>

I am going through the MyLocations tutorial and am at the part where we are adding the ability to add a photo from the Library or take a photo with the camera. The book mentions the requirement of adding the following t…

---

## [Console output?](https://forums.kodeco.com/t/console-output/21240)

<div class="topic-metadata">

**Author:** [@pdad04](https://forums.kodeco.com/u/pdad04)\
**Replies:** 1\
**Last updated:** [October 16, 2016, 9:49am UTC](https://forums.kodeco.com/t/console-output/21240 "2016-10-16T09:49:47Z")

</div>

I’ve just started the Store Search tutorial and only changed ViewController to SearchViewController. I then built and ran the app as suggested. In the output in the console it showed the following: 2016-10-15 19:48:11…

---

## [MyLocations pg. 221: Can't drag Image View to Add Photo cell](https://forums.kodeco.com/t/mylocations-pg-221-cant-drag-image-view-to-add-photo-cell/20897)

<div class="topic-metadata">

**Author:** [@sisball8](https://forums.kodeco.com/u/sisball8)\
**Replies:** 5\
**Last updated:** [October 16, 2016, 5:37am UTC](https://forums.kodeco.com/t/mylocations-pg-221-cant-drag-image-view-to-add-photo-cell/20897 "2016-10-16T05:37:11Z")

</div>

The tutorial is pretty clear that I must add an Image View in the Add Photo cell. But, the problem I’m running into is when I click and drag the Image View to the Add Photo cell, it won’t allow me to drop it on the cell. …

---

## [Checklists (V5): Cancel on "Add Checklist" adds item; Done adds it twice](https://forums.kodeco.com/t/checklists-v5-cancel-on-add-checklist-adds-item-done-adds-it-twice/21051)

<div class="topic-metadata">

**Author:** [@businessgeek](https://forums.kodeco.com/u/businessgeek)\
**Replies:** 3\
**Last updated:** [October 13, 2016, 4:33am UTC](https://forums.kodeco.com/t/checklists-v5-cancel-on-add-checklist-adds-item-done-adds-it-twice/21051 "2016-10-13T04:33:11Z")

</div>

This is happening upon “Run the app” on pg. 168. This smells like a classic rookie error–probably in Interface Builder–but I can’t find it. Stepping through the code, I can see that the done() method in ListDetailViewC…

---

## [VAT deduction for a company purchase](https://forums.kodeco.com/t/vat-deduction-for-a-company-purchase/20937)

<div class="topic-metadata">

**Author:** [@emanahov](https://forums.kodeco.com/u/emanahov)\
**Replies:** 3\
**Last updated:** [October 12, 2016, 10:55pm UTC](https://forums.kodeco.com/t/vat-deduction-for-a-company-purchase/20937 "2016-10-12T22:55:56Z")

</div>

Hi, I am trying to buy the whole set of books (439 USD) in a company name in Bulgaria. Is there any way for you to charge me without VAT since my company is VAT registered in EU and this is the normal procedure? Thanks …

---

## [Tutorial 2: Checklists v5.0: Strange Behavior with TableViews](https://forums.kodeco.com/t/tutorial-2-checklists-v5-0-strange-behavior-with-tableviews/20946)

<div class="topic-metadata">

**Author:** [@crazybulldog](https://forums.kodeco.com/u/crazybulldog)\
**Replies:** 1\
**Last updated:** [October 10, 2016, 2:29pm UTC](https://forums.kodeco.com/t/tutorial-2-checklists-v5-0-strange-behavior-with-tableviews/20946 "2016-10-10T14:29:50Z")

</div>

After building and starting the checklist app in the simulator the app behaves strange.I’ve completed the tutorial.All feature are implemented.On the AllListsViewcontroller i press the + button to add a new checklist.The…

---

## [Tutorial 1 - preloading Web View on AboutViewController screen?](https://forums.kodeco.com/t/tutorial-1-preloading-web-view-on-aboutviewcontroller-screen/20817)

<div class="topic-metadata">

**Author:** [@mackrell](https://forums.kodeco.com/u/mackrell)\
**Replies:** 2\
**Last updated:** [October 9, 2016, 10:51am UTC](https://forums.kodeco.com/t/tutorial-1-preloading-web-view-on-aboutviewcontroller-screen/20817 "2016-10-09T10:51:44Z")

</div>

I’ve just completed the Bull’s Eye tutorial for Swift 3, and IOS 10, and all works great. Just one tiny thing bothers me slightly. When I first run the app and hit the about button to take me to the About screen, the web…

---

## [Content of iOS Apprentice - how many tutorials](https://forums.kodeco.com/t/content-of-ios-apprentice-how-many-tutorials/20914)

<div class="topic-metadata">

**Author:** [@hrishi](https://forums.kodeco.com/u/hrishi)\
**Replies:** 1\
**Last updated:** [October 8, 2016, 4:29pm UTC](https://forums.kodeco.com/t/content-of-ios-apprentice-how-many-tutorials/20914 "2016-10-08T16:29:17Z")

</div>

There are 4 tutorials featured on the web page. Does the book have 4 tutorials or more ?

---

## [Checklists TextField not shown](https://forums.kodeco.com/t/checklists-textfield-not-shown/20811)

<div class="topic-metadata">

**Author:** [@shanky](https://forums.kodeco.com/u/shanky)\
**Replies:** 1\
**Last updated:** [October 7, 2016, 11:57am UTC](https://forums.kodeco.com/t/checklists-textfield-not-shown/20811 "2016-10-07T11:57:55Z")

</div>

Hi! I am working on the latest iOS Apprentice version and … I am a newbie here. While making the New Item screen, I am not able to drag and drop the TextField to the Content View of the Table View Cell. The textfield a…

---

## [Why the preview don't layout](https://forums.kodeco.com/t/why-the-preview-dont-layout/20730)

<div class="topic-metadata">

**Author:** [@liuqilin](https://forums.kodeco.com/u/liuqilin)\
**Replies:** 6\
**Last updated:** [October 6, 2016, 12:43am UTC](https://forums.kodeco.com/t/why-the-preview-dont-layout/20730 "2016-10-06T00:43:13Z")

</div>

---

## [\[Tutorial 2\]: Checklists v5.0 - Can't add text field object into static cell](https://forums.kodeco.com/t/tutorial-2-checklists-v5-0-cant-add-text-field-object-into-static-cell/20391)

<div class="topic-metadata">

**Author:** [@crazybulldog](https://forums.kodeco.com/u/crazybulldog)\
**Replies:** 4\
**Last updated:** [October 6, 2016, 12:41am UTC](https://forums.kodeco.com/t/tutorial-2-checklists-v5-0-cant-add-text-field-object-into-static-cell/20391 "2016-10-06T00:41:03Z")

</div>

Hi, i’ve followed the instructions but no luck it is not possible to insert a text field component into static cell… Oliver

---

## [I want to ask what is window means in apps..i mean which one..because if i dont write it,the appearance still didnt change](https://forums.kodeco.com/t/i-want-to-ask-what-is-window-means-in-apps-i-mean-which-one-because-if-i-dont-write-it-the-appearance-still-didnt-change/20238)

<div class="topic-metadata">

**Author:** [@poseidon](https://forums.kodeco.com/u/poseidon)\
**Replies:** 4\
**Last updated:** [October 5, 2016, 8:36pm UTC](https://forums.kodeco.com/t/i-want-to-ask-what-is-window-means-in-apps-i-mean-which-one-because-if-i-dont-write-it-the-appearance-still-didnt-change/20238 "2016-10-05T20:36:40Z")

</div>

---

## [Tutorial 2 - Initializer](https://forums.kodeco.com/t/tutorial-2-initializer/20723)

<div class="topic-metadata">

**Author:** [@bballdan4](https://forums.kodeco.com/u/bballdan4)\
**Replies:** 1\
**Last updated:** [October 5, 2016, 7:37am UTC](https://forums.kodeco.com/t/tutorial-2-initializer/20723 "2016-10-05T07:37:31Z")

</div>

Instance member 'checked cannot be used on type ‘ChecklistItem’

---

## [NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) StoreSearch Apprentice book](https://forums.kodeco.com/t/nsurlsession-nsurlconnection-http-load-failed-kcfstreamerrordomainssl-9813-storesearch-apprentice-book/20712)

<div class="topic-metadata">

**Author:** [@paulsur](https://forums.kodeco.com/u/paulsur)\
**Replies:** 1\
**Last updated:** [October 5, 2016, 7:36am UTC](https://forums.kodeco.com/t/nsurlsession-nsurlconnection-http-load-failed-kcfstreamerrordomainssl-9813-storesearch-apprentice-book/20712 "2016-10-05T07:36:16Z")

</div>

I’m up to page 73 in the StoreSeach Apprentice book. When I try and run I get the following error: NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9813) This seems totally random, as I was able…

---

## [\*Solved\* MyLocations - Could not cast value of type 'UITableViewCellContentView' (0x1117781c0) to 'UILabel' (0x11176aca0)](https://forums.kodeco.com/t/solved-mylocations-could-not-cast-value-of-type-uitableviewcellcontentview-0x1117781c0-to-uilabel-0x11176aca0/18115)

<div class="topic-metadata">

**Author:** [@bush](https://forums.kodeco.com/u/bush)\
**Replies:** 2\
**Last updated:** [October 5, 2016, 3:02am UTC](https://forums.kodeco.com/t/solved-mylocations-could-not-cast-value-of-type-uitableviewcellcontentview-0x1117781c0-to-uilabel-0x11176aca0/18115 "2016-10-05T03:02:32Z")

</div>

I am on page 177 where you fake a single row with placeholder text in two labels. If I remove the declaration of the addressLabel, the app runs perfectly. When I add the addressLabel back into it, run the app, and click…

---

## [Why this happen](https://forums.kodeco.com/t/why-this-happen/20670)

<div class="topic-metadata">

**Author:** [@poseidon](https://forums.kodeco.com/u/poseidon)\
**Replies:** 1\
**Last updated:** [October 3, 2016, 5:32pm UTC](https://forums.kodeco.com/t/why-this-happen/20670 "2016-10-03T17:32:15Z")

</div>

why if i add this on my code if give error when i run on simulator but when i erase this delegate its work fine…

---

## [iOS Apprentice (Version 5 : download disabled) - in MyLoot](https://forums.kodeco.com/t/ios-apprentice-version-5-download-disabled-in-myloot/20514)

<div class="topic-metadata">

**Author:** [@arthur](https://forums.kodeco.com/u/arthur)\
**Replies:** 3\
**Last updated:** [October 3, 2016, 3:36am UTC](https://forums.kodeco.com/t/ios-apprentice-version-5-download-disabled-in-myloot/20514 "2016-10-03T03:36:08Z")

</div>

Today I purchased the iOS Apprentice and want to download version 5 (the link is disabled)… (Am I missing anything?? Thanks in advance Arthur P.s. link for 4.1, 3.3, & 2.1 all active

---

## [MyLocations pg. 172: Use of undeclared type LocationsViewController](https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604)

<div class="topic-metadata">

**Author:** [@sisball8](https://forums.kodeco.com/u/sisball8)\
**Replies:** 2\
**Last updated:** [October 3, 2016, 1:15am UTC](https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604 "2016-10-03T01:15:33Z")

</div>

I don’t see why LocationsViewController is an undeclared type here. Did I miss something from the MainStoryboard?

---

## [doneBarButton needs to be disabled at viewDidLoad() first](https://forums.kodeco.com/t/donebarbutton-needs-to-be-disabled-at-viewdidload-first/20556)

<div class="topic-metadata">

**Author:** [@zacksss](https://forums.kodeco.com/u/zacksss)\
**Replies:** 2\
**Last updated:** [October 1, 2016, 5:05pm UTC](https://forums.kodeco.com/t/donebarbutton-needs-to-be-disabled-at-viewdidload-first/20556 "2016-10-01T17:05:10Z")

</div>

Dear Author(s), When I am studying your iOS Apprentice Chapter 2 Checklist app, I’ve found the code: func textField(\_ textField: UITextField, shouldChangeCharactersIn range: NSRange, repla…

---

## [EXC\_BAD\_INSTRUCTION error for doneBarButton](https://forums.kodeco.com/t/exc-bad-instruction-error-for-donebarbutton/20519)

<div class="topic-metadata">

**Author:** [@pdenlinger](https://forums.kodeco.com/u/pdenlinger)\
**Replies:** 3\
**Last updated:** [September 30, 2016, 4:00pm UTC](https://forums.kodeco.com/t/exc-bad-instruction-error-for-donebarbutton/20519 "2016-09-30T16:00:48Z")

</div>

After I compile the app after adding the ListDetailViewControllerDelegate on page 170, the app crashes when I try to add a new item to the Checklists page. The error I get is on the ListDetailViewController.swift page a…

---

## [Quick thanks and a question about global constants](https://forums.kodeco.com/t/quick-thanks-and-a-question-about-global-constants/20497)

<div class="topic-metadata">

**Author:** [@ariadne](https://forums.kodeco.com/u/ariadne)\
**Replies:** 1\
**Last updated:** [September 29, 2016, 3:24pm UTC](https://forums.kodeco.com/t/quick-thanks-and-a-question-about-global-constants/20497 "2016-09-29T15:24:34Z")

</div>

Hi everyone, I have just finished the 2nd tutorial in iOS apprentice series and it is fantastic. I have followed a few on-line tutorials and a couple of YouTube videos on iOS development but nothing compares to quality …

---

## [Consecutive declarations on a line must be separated by ";" error message](https://forums.kodeco.com/t/consecutive-declarations-on-a-line-must-be-separated-by-error-message/20400)

<div class="topic-metadata">

**Author:** [@pdenlinger](https://forums.kodeco.com/u/pdenlinger)\
**Replies:** 2\
**Last updated:** [September 29, 2016, 12:06am UTC](https://forums.kodeco.com/t/consecutive-declarations-on-a-line-must-be-separated-by-error-message/20400 "2016-09-29T00:06:53Z")

</div>

I am using the Swift 3.0 version and Xcode 8 for Checklists, and am getting this error for the else statement in this method: @IBAction func done() { let item = ChecklistItem() item.text = textField.text! item.checke…

---

## [I get 4 errors when I created the project for Hit Me](https://forums.kodeco.com/t/i-get-4-errors-when-i-created-the-project-for-hit-me/20115)

<div class="topic-metadata">

**Author:** [@swhc1066](https://forums.kodeco.com/u/swhc1066)\
**Replies:** 4\
**Last updated:** [September 22, 2016, 5:32pm UTC](https://forums.kodeco.com/t/i-get-4-errors-when-i-created-the-project-for-hit-me/20115 "2016-09-22T17:32:52Z")

</div>

Signing for “BullsEyeTests” requires a development team. Select a development team in the project editor. Code signing is required for product type ‘Unit Test Bundle’ in SDK ‘iOS 10.0’ Signing for “BullsEyeTests” requi…

---

## [The Status Bar - method does not override any method from its superclass](https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234)

<div class="topic-metadata">

**Author:** [@bush](https://forums.kodeco.com/u/bush)\
**Replies:** 2\
**Last updated:** [August 8, 2016, 5:52pm UTC](https://forums.kodeco.com/t/the-status-bar-method-does-not-override-any-method-from-its-superclass/18234 "2016-08-08T17:52:49Z")

</div>

I just reached the part with the status bar. In each to the new files that I created (MyTabBarController, MyNavigationController, and MyImagePickerController), I am getting an error: method does not override any method …

---

## [Make random image change every day](https://forums.kodeco.com/t/make-random-image-change-every-day/19641)

<div class="topic-metadata">

**Author:** [@byoss](https://forums.kodeco.com/u/byoss)\
**Replies:** 5\
**Last updated:** [September 13, 2016, 7:43pm UTC](https://forums.kodeco.com/t/make-random-image-change-every-day/19641 "2016-09-13T19:43:35Z")

</div>

hello. i want to make view with UIImageview that change random everyday at midnight. the image’s are local on the app. i try to do something but with out any success. thanks for your help.

---

## [Method has different argument names from those required](https://forums.kodeco.com/t/method-has-different-argument-names-from-those-required/19604)

<div class="topic-metadata">

**Author:** [@pdad04](https://forums.kodeco.com/u/pdad04)\
**Replies:** 6\
**Last updated:** [September 13, 2016, 3:44pm UTC](https://forums.kodeco.com/t/method-has-different-argument-names-from-those-required/19604 "2016-09-13T15:44:37Z")

</div>

In my ListDetailViewController, I have the following defined. protocol ListDetailViewControllerDelegate: class { func listDetailViewControllerDidCancel(controller: ListDetailViewController) func listDetailViewControll…

---

## [Thank You, Matthijs!](https://forums.kodeco.com/t/thank-you-matthijs/19191)

<div class="topic-metadata">

**Author:** [@chicago](https://forums.kodeco.com/u/chicago)\
**Replies:** 7\
**Last updated:** [September 12, 2016, 8:17pm UTC](https://forums.kodeco.com/t/thank-you-matthijs/19191 "2016-09-12T20:17:26Z")

</div>

Over the years, I have read iOS books/ebooks by Dave Mark, Big Nerd Ranch, Wei-Ming Lee, Neil Smythe, Matt Neuburg, many RW tutorials and probably several others, but Matthijs Hollemans’ tutorials absolutely tower over t…

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

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