cs193p – Lecture #5 – View Controller Lifecycle

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

Lecture #5 starts with an introduction to text views and – new to iOS 7 – text storages and TextKit followed by a short demo.

The view-controller life cycle consists of the following steps:

  • the view gets instantiated e.g. from storyboard
  • awakeFromNib is called, which you could compare to init
  • the outlets get set
  • viewDidLoad is called, which can be used for basic setups
  • geometry is determined
  • viewWillLayoutSubviews and viewDidLayoutSubviews are called
  • viewWillAppear and viewDidAppear are called
  • viewWillLayoutSubviews and viewDidLayoutSubviews are called
  • viewWillDisappear and viewDidDisappear are called
  • didReceiveMemoryWarning is called when memory gets low

Continue reading “cs193p – Lecture #5 – View Controller Lifecycle”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

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”.

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 demonstration of how to solve the previous assignment and adds new features to the Matchismo app by adding additional cards and a card-matching algorithm.

The code for this lecture is available at github.

The lecture as well as its slides (which include a complete walk through of the demo from the lecture) are available via iTunes called “3. Objective-C”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #2 – Xcode 5

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.

The code for this lecture is available at github.

The lecture as well as its slides (which include a complete walk through of the demo from the lecture and most of assignment #1) are available via iTunes called “2. Xcode 5”.

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.

Like every year 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

cs193p – Lecture #18 – UIImagePickerController, Core Motion, and Localization

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

Lecture #18 starts by explaining how to add camera functionality (including a short demo), core motion (with demo) and localization (no demo due to lack of time).

The code of the demo is available at Stanford and on github.

Slides are available on iTunes …..

The lecture is available at iTunes and is named “18. UIImagePickerController, Core Motion, and Localization (March 7, 2013)”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

cs193p – Lecture #17 – View Animation, NSTimer, Alerts and Action Sheets

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

Lecture #17 starts with an introduction to view animations followed by a short demonstration. After an overview about timers they are incorporated in the demo, and finally alerts and action sheets – also put into the demonstration but not completely due to lack of time.

The code of the demo is available at Stanford and on github.

Slides are available on iTunes …..

The lecture is available at iTunes and is named “17. View Animation, NSTimer, Alerts and Action Sheets (March 5, 2013)”.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail