At the end of each chapter, there were some exercises to help you determine if you understood the material in that chapter correctly. Here are the answers to those questions.
CHAPTER 1 ANSWERS
- You need to keep in mind how your app’s name will look when displayed on the home screen of an iPhone or iPad. Typically, you have approximately 12 characters before the name is abbreviated.
- You need to scope your app to keep it useful without adding too many features that users may find confusing. You don’t want a feature list that would take years to implement.
- If you app duplicate features that are in Apple apps, your app may be rejected when submitted for the App Store. It is best to avoid almost any overlap.
CHAPTER 2 ANSWERS
- The interface or header file with a
.hfile extension and the implementation file with a
- The following code defines the
ChapterExerciseclass with a single method named
writeAnswer, which takes no arguments and returns nothing:
@interface ChapterExercise : NSObject - (void)writeAnswer; @end
- You would use this code to instantiate the
ChapterExercise *anInstance = [[ChapterExercise alloc] init];
retainkeyword increments the reference count, whereas the
releasekeyword decrements it.
- ARC stands for Automatic Reference Counting.
strongkeyword indicates the class owns the instance of the object, and it will not be deallocated as long as the strong ...