Blogs

iTunesU Viewers

Stanford University's CS193p (Developing Applications for iOS) Winter 2016-17 (based on iOS 10 and Swift 3) is now available on iTunesU.

THE DEMO CODE BELOW IS FOR AN OLD (LAST QUARTER'S) VERSION OF CS193P BASED ON IOS 9 AND SWIFT 2.2 AND IS COMPLETELY INCOMPATIBLE WITH THE CURRENTLY ONGOING CS193P APPEARING ON ITUNESU WHICH IS BASED ON IOS 10 AND SWIFT 3.

The demo code for iOS 10/Swift 3 is can be found with the lectures themselves on iTunesU and will not be posted here.

Please do not repost from this website on other websites--these downloads are for the individual use of those of you watching the course on iTunesU. Enjoy!

Section 4: AVFoundation

Here is the code from today's section.

Note that the face detection only works for one (landscape) orientation of the device.

Sample code: 

Friday Section 4/29: Leaks & Static Analysis

Here is the modified Psychologist code example that I used to illustrate finding leaks and using the static analysis tool in Xcode.

Sample code: 

Friday Section 4/8: Provisioning and Debugging

Here are the slides from the section on 4/8.

Also attached is the XCode Project for the debugging example we covered. There are several bugs in this code so it does not work (that is intentional) ... see if you can find the bugs yourself. If not, the readme.txt contains a list of bugs.

Sample code: