Bouncer and internationalized version of Autolayout demo.
Demo code from the Application Lifecycle, Notifications and Core Motion lecture.
Twitter classes for homework assignment attached.
Psychologist VCL Demo
ShowSizeClass Demo
Auotlayout Demo
Psychologist Demo.
Psychologist Popover Demo.
Internationalization of Photomania and adding Elasticity to the Settings application for Bouncer.
Includes code for Action Sheet in Photomania not demoed in lecture.
Added doubleTap to restart a Bouncer game.
Files that were changed in today's lecture are grouped together in the Xcode project under "Modified in Lecture 15."
Some comments added here and there.
Note that when we copy/paste at the end of lecture from the iPad storyboard back to the iPhone storyboard we CAN copy/paste the URL-showing scene too if we want, even though it is in a popover. When we do so, the segue will go from being a Popover segue to being "Unknown" (because there is no Popover on a phone, only on the iPad). No problem, just inspect that segue and change it from Unknown to Push (this has been done in the posted code below). It will all just work! Possibly this is not the best UI for showing the URL on a phone, but it is serviceable.
You will find this demo code invaluable for doing Assignment 6. Also attached here is the extremely necessary CoreDataTableViewController .
At Stanford, we prohibited students from using Shutterbug as the starting point for their Assignment 5 (in other words, they had to start Assignment 5 with File->New->Project ... in Xcode, but could then use the code from Shutterbug if they wished) and we also did not allow them to copy/paste from Imaginarium's or Shutterbug's storyboard (so they'd get the experience of building the storyboard from scratch).
Two versions of the demo here.
Dropit Attach is simply the code from lecture.
Dropit Align is a bonus posting which has a rudimentary alignment algorithm in DropitBehavior which causes a block involved in a collision to continue to move horizontally (based on its linear velocity) until it lines up with the grid. This is posted just so you can see how a collision delegate works and how one might get physics information about items out of a UIDynamicItemBehavior. A little bit contrived, we'll admit.
The reason that the row "explosion" was occasionally not working at the end of lecture is that our stacks of blocks were too "tippy" and it was taking a long time for the animation to settle down. We'll address that when we continue this demo next time by making the blocks more stable (not letting them rotate).
You will have to provide your own Card Model files (from Matchismo) for this demo to work. Just drag them into the SuperCard project and build.
The code for this was touched up a bit after lecture to build properly on 64-bit systems (index variable in characterWithAttribute: and the stringWithFormat: calls). We'll endeavor to make the demo code correct for 64-bit systems, but occasionally we'll fall down on the job (apologies in advance for that) because we always build for the 3.5-inch (thus, non-64-bit) iPhone for screen real estate reasons.
Included below is the code for the attributed strings demo Attributor.
No code for the other short demo (breaking the card game up into abstract and concrete Controllers), but that should be easily reproducible from lecture.
Stanford only.
Demo for localization attached here even though there was no time to actually present it in lecture. Lecture 18 was the last lecture on iTunesU this quarter. Thanks for watching everyone!
You will need to put your own Flickr API key into FlickrAPIKey.h.
The FlickrFetcher code needed for Assignment 4 is included in the Shutterbug demo code.
This download includes only the new classes and some description about the changes needed to the main controller of Matchismo. You will have to integrate it into your version of Matchismo to make it work.
Demo code (including weak French translation!) attached.
Final projects are due by the end of the day next Friday (June 8th).
Please come to Tuesday's lecture with Ranker installed on your device and submit your to me asap (I'll be doing one more update over the weekend and I'll need all the UDIDs before then). We only had about 7 beta testers today which was not enough to have very much confidence going into "live production" at the final exam period.