Chapter 3 of 10 at Apple Developer > Jump Right In is Work with View Controllers.
As you learn more and more, you shrink the great yawning gap: you begin to know more and more of what Apple imagines they told you to know, and actually forgot to mention.
Diagrams help
Apple's diagrams do help explain Xcode. Talk with us if they don't make sense.
<= Learning Objectives
<= Understand the View Controller Lifecycle
Race ahead as needed
Apple wants you to jump to the end and download their work, so that you can borrow their "03_WorkWithViewControllers/Images/defaultPhoto.png". Somehow, they can't bring themselves to tell you that plainly.
Apple wants you give your UIImage the size of 320x320 size, so that it fits the Png you're borrowing.
Apple wants you to notice the nearly buried trailing note that suggests you choose Attributes > User Interaction Enabled = Yes. Somehow, they can't bring themselves to mention that later, when it becomes a crucial detail that stops you dead if you never got it right.
<= Add a Meal Photo
<= Display a Default Photo
PQ is often and not always a part of P
iOS really has pushed you to write one Func named "imagePickerController" and second Func named "imagePickerControllerDidCancel" without the shared name meaning much.
Both names begin with "imagePickerController", but the "imagePickerController" Func is not the whole of which "DidCancel" Func is a piece. Rather, both of these Func's are pieces: they are peers, not whole and part.
<= Connect the Image View to Code
<= Create a Gesture Recognizer
Learn the Info PList later
Apple says your app "terminates with a SIGABRT signal" till you learn the Info PList.
This isn't true.
Just keep moving.
<= Create an Image Picker to Respond to User Taps
Add the meal photos later
Apple says your need to import meal photos into your iPhone Simulator to demo your app convincingly.
This isn't true.
Just keep moving.
<= Create an Image Picker to Respond to User Taps
Download and compare and commit
By now you know the drill. This time the download is 03_WorkWithViewControllers. This time your Commit Message can be "Work with View Controllers".
Back | Forward | Source: Apple Developer > Work with View Controllers
No comments:
Post a Comment