cs193p – Lecture #9 – Animation and Autolayout

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

Lecture #9 starts with a demo continuing the dropit app from the previous lecture.

The rest of the lecture is devoted to autolayout and different ways how constraints can be defined followed by another short demonstration.

The code for this lecture is available at github for dropit and attributor as well as from Stanford.

The lecture as well as its slides are available via iTunes called “9. Animation and Autolayout”.

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!

cs193p – Lecture #6 – Views and Gestures

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

Lecture #6 starts with a short demonstration on how to use abstract view controller classes and their sub classes.

The theory part of the lecture introduces how multiple MVCs work together to be specific navigation controllers and segues, which is shown in another demonstration.

The lecture closes with an explanation of tab-bar controllers.

The code for this lecture is available at github for attributor and for matchismo as well as from Stanford.

The lecture as well as its slides are available via iTunes called “6. Views and Gestures”.

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!

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”

Facebooktwittergoogle_plusredditpinterestlinkedintumblrmailFacebooktwittergoogle_plusredditpinterestlinkedintumblrmail

Flattr this!