Recent Posts

Pages: 1 [2] 3 4 ... 10
11
Book 3: Mastering Xcode and Swift / String Literals?
« Last post by Sam on April 08, 2018, 03:42:44 PM »
In Book 3, page 345, the code to enter says, 

      "let shipmentEntity =
         self.shipmentList[indexPath.row]
      cell.textLabel?.text = shipmentEntity.name
      cell.detailTextLabel?.text =
      "\(shipmentEntity.address),
      \(shipmentEntity.city),
      \(shipmentEntity.region),
      \(shipmentEntity.postalCode)"

However, Xcode does not like comma separated shipmentEntity entries and seems to want each entity encapsuled with " ".  While doing so seems to enable the recognition of the individual shipmentEtities, the city, region, and postal code lines all have a warning that say "String literal is unused."

Is there a fix for this?  I don't see anything in Stack Overflow...

thank you!
12
Book 3: Mastering Xcode and Swift / Re: I want a refund
« Last post by angelina on April 04, 2018, 07:39:55 PM »
I'm sorry you feel that way.  I've read many iOS development books and have found that all of them at one point or another have very similar issues because Xcode and Swift are always updating.  I've also found that working through these issues have actually helped me understand and work through programming issues more efficiently.  If you would still like a refund you can contact Apple through the iBooks Store directly.


Angelina
Oak Leaf Enterprises, Inc.
13
Book 1: Diving In / Re: Can’t click allow
« Last post by angelina on April 04, 2018, 10:54:04 AM »
Apple typically doesn’t post Xcode glitches and bugs, however, other Xcode users usually post these glitches and bugs online on the Apple Developer forum and StackOverflow, which are great places to find solutions and workarounds.



Angelina
Oak Leaf Enterprises, Inc.
14
Book 3: Mastering Xcode and Swift / Re: Chapter 12 Creating Entity Classes problem
« Last post by angelina on April 04, 2018, 10:45:10 AM »
We're anticipating updating Book 3 after this year’s WWDC.



Angelina
Oak Leaf Enterprises, Inc.
15
Book 3: Mastering Xcode and Swift / I want a refund
« Last post by Wmaz on April 04, 2018, 10:32:39 AM »
This book is so outdated that nothing worked. I downloaded the sample code but Xcode wouldn't open any of the files. How do I get a refund? Update the book or take it off of the iBooks store.
16
Book 3: Mastering Xcode and Swift / Re: Chapter 12 Creating Entity Classes problem
« Last post by Wmaz on March 29, 2018, 07:15:47 AM »
Can we expect an update to the book soon?
17
Book 1: Diving In / Can’t click allow
« Last post by Wmaz on March 28, 2018, 08:53:11 AM »
I decided to give this book another try and I’m glad I did. After creating the location scene I tried to run the app. Everything went fine until I tried to open the location scene. When I got the message to allow location I tried to click allow and nothing would happen. Just for the heck of it I turned off show hardware bezel and it worked. I’m using Xcode 9.2. I’m assuming this is an Apple programming glitch. If it is a known glitch is there anyway to get notified of that?
I got through the entire book this time so I bought the next two.
18
Book 3: Mastering Xcode and Swift / Re: Chapter 12 Creating Entity Classes problem
« Last post by Sam on March 27, 2018, 09:36:08 PM »
Awesome!!!  Thank you Angelina; all errors cleared up!!!

Upwards and onwards!!!
19
Book 3: Mastering Xcode and Swift / Re: Chapter 12 Creating Entity Classes problem
« Last post by angelina on March 27, 2018, 02:37:09 PM »
Hi Sam,

This book hasn't been updated in a while and there have been some minor changes in Xcode.  One of these changes is how you generate Core Data Entity classes from the Data Model as explained on page 330 (“Generating Entity Classes From the Data Model”).  When you create the entity classes for ShipmentEntity and DeliveryStatusEntity, follow these steps:

1. “Select the iDeliverMobileCD entity data model in the Project Navigator.”

2. Select the DeliveryStatusEntity and in the Data Model inspector, change Codegen to Manual/None.  Do the same thing for ShipmentEntity.

3. With the Data Model still selected and at least one of the Entities selected, go to Editor > Create NSManagedObject Subclass...

4. On the window that appears, make sure iDeliverMobileCD is checked and select Next.

5. Select the entities you would like to manage in the next window so make sure there's a checkmark next to both the ShipmentEntity and the DeliveryStatusEntity and select Next.

6. After verifying the file save location in the next window, select Create.

Note that the ShipmentEntity.swift and DeliveryStatusEntity.swift files as referred to in the book are now named ShipmentEntity+CoreDataClass.swift and DeliveryStatusEntity+CoreDataClass.swift.



Angelina
Oak Leaf Enterprises, Inc.
20
Book 3: Mastering Xcode and Swift / Chapter 12 Creating Entity Classes problem
« Last post by Sam on March 25, 2018, 11:47:32 PM »
So since this book was written, creating NSManagedObject subclass has been moved (apparently) to the Editor main menu.

However, when attempting to create this subclass while the xcdatamodel is selected creates Property and Class subfiles that are full of errors.

I've tried to follow the book instructions a few times now, adapting to the new detour of adding the subclass through the Editor menu and I continue to get these errors.  Have tried to build in Xcode 8.3.3 as well as 9.3.  See attached screenshot please.

Kevin kindly sent an updated mmBusinessObject file along with a couple of other files but they don't seem to address this issue.

please advise on fixes - thank you!
Pages: 1 [2] 3 4 ... 10