cs193p – Lecture #4 – Foundation, Attributed Strings

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #4 provides more insight into Objective-C and introduction to the Foundation framework.

… more about nil, instantiation, dynamic binding, compile time vs run time, object typing, introspection …

A short demo shows how match: of PlayingCard can be improved by introspection.

The code of Matchismo for this lecture is available at Stanford and on github.

… more about description, copy & mutableCopy, NSArray, enumeration, NSNumber, NSValue, NSData, NSDate, NSSet, NSOrderedSet, NSDictionary, porperty lists, NSUserDefaults, NSRange, colors and fonts, UIColor, UIFont, and NSAttributedString.

The lecture finishes with another demo demonstrating attributed strings.

The code of the Attribute demo for this lecture is available on github.

Slides are available on iTunes …..

The lecture is available at iTunes and is named “4. Foundation, Attributed Strings (January 17, 2013)”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #3 – Objective-C

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #3 is a demo followed by a little review of what has been learned up to now.

The demo introduces outlet collections – arrays of collections which hold strong pointers to the objects in the view. It also shows how to implement a property which is read-only for the public interface and read-write for private use. … and adds new features to the card game.

The code for the lecture is available on github.

Slides are available on iTunes providing a detailed walk through of the demo.

The lecture is available at iTunes and is named “3. Objective-C (January 15, 2013)”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #2 – Xcode 4

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #2 provides a short walk through of the Xcode developing environment. The first half of the lecture discusses the various classes of the model for the playing card game. The second is a life demonstration on how to start a project in Xcodes, placing buttons and labels in Storyboard and connecting them to the view controller.

At the end of the lecture the app called Matchismo displays a playing card and allows to flip it to show both sides of the card.

Assignment #0 is to follow the steps from the demonstration, add the model classes from the first half of the lecture and finally allow to flip through all cards of a deck.

To implement this last step, add a new property to hold the model of the game – the card deck – to the view controller. Don’t forget to include the model class:
Continue reading “cs193p – Lecture #2 – Xcode 4”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #1 – iOS, MVC, Objective-C

Please note, this blog entry is from a previous course. You might want to check out the current one.

Lecture #1 is an general introduction of the course with an overview about iOS, MVC and Object C.

Paul Hegarty stresses the importance of being familiar with object oriented programming as prerequisites for the course and that it is not for absolute beginners.
Continue reading “cs193p – Lecture #1 – iOS, MVC, Objective-C”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail