4 votes

Tracking a geolocation

You already know exactly what your viewDidLoad method should look like... you just didn't write it how you know it should look. It should look like this: ...
nhgrif's user avatar
  • 25.3k
3 votes

Quiz app with Practice and Exam modes

Coding style Generally your code is written clearly. Just two points that I noticed: Two different styles of positioning the opening braces of a code block are used: ...
Martin R's user avatar
  • 23.2k
2 votes

Core Data Wrapper

Well, if it works for you, it's fine :) Here are the things that bother me: Because inserting new objects in Core Data is quite an important operation, and is independent of saving, and since two of ...
Jerry Krinock's user avatar
1 vote

Understanding How To Approach A Permutational Word Search

There are many ways to speed up a problem like this. You are asking for a server-side way, so it must be cheap in processing-time/energy-consuption. Fast response is a secondary goal. Precompute valid ...
stefan's user avatar
  • 2,925
1 vote

Core-data object with relationships conforming protocol in swift

NSManagedObjects already have a property for their current context. It is weak however, which is usually ok for most cases because you would retain the context in ...
malhal's user avatar
  • 111
1 vote

iOS Core Data Model with Swifty JSON

Based on the code that you've supplied, here's my take on some small changes in responsibility. First of all, the NSManagedObject subclass. You can write this by ...
MathewS's user avatar
  • 653
1 vote

Weightlifting calculator

This is a perfect "question" for this site! I see no problem with mapping an enum to an NSManagedObject. In fact I recommend it. I think it is far better to encapsulate your core data classes, such ...
Daniel T.'s user avatar
  • 811
1 vote

Table View Controller for selecting and saving user default preferences in an iOS app

I think you will find that the above code, in fact, does not work if you have enough lifts in the table view such that the selected lift must get reloaded. The reason I think this is because you don't ...
Daniel T.'s user avatar
  • 811

Only top scored, non community-wiki answers of a minimum length are eligible