cs193p – Lecture #4 – Foundation and Attributed Strings

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

Lecture #4 is mostly theory with a tiny demonstration in between.

It starts with an introduction to foundation objects and how to create them using initializers or special class methods. The demo shows how to use introspection to safely use dynamic typing.

Further objects of the foundation framework explained during the lecture are mutable and immutable arrays (as well as enumeration), numbers, values, data objects, dates, sets (ordered, unordered), and dictionaries.

New for iOS 7 is preferredFontForTextStyle for fonts and font descriptors.

The lecture ends with attributed strings …

The code for this lecture is available at github.

The lecture as well as its slides are available via iTunes called “4. Foundation and Attributed Strings”.


Leave a Reply

Your email address will not be published.