Friday Session #5: Time Profiler

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

This weeks Friday session addresses the Time Profiler. It can be found on iTunes titled “Time Profiler (November 4, 2011)”.

In this session Alexander Chia shows when and how to use the time profiler on an example project calculation pi via a monte carlo algorithm and on a graphic calculator.

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Lecture #12: Persistence

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

Lecture twelve is named “12. Persistence (November 3, 2011)” and can be found at iTunes. Its slides are available at Stanford.

The first part of this lecture is designated to guidelines of the final project of the course and because it is targeted at campus students has been omitted from the iTunes stream.

The second part is devoted to persistence – the ways to save data between launchings of an application.
Continue reading “Lecture #12: Persistence”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Lecture #11: Core Location and MapKit

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

Lecture eleven is named “11. Core Location and MapKit (November 1, 2011)” and can be found at iTunes. Its slides are available at Stanford.

The theoretical part starts with an introduction to Core Location and MapKit.

CoreLocation is a framework managing location and heading and has no user interface. Its basic object is CLLocation and contains properties like coordinate, altitude, horizontal/verticalAccuracy, timestamp, speed, course.
Continue reading “Lecture #11: Core Location and MapKit”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Assignment #4 Extra Task #1

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

Divide your list of top places into sections (in the table view sense) by country. This will require a little bit different data structure in that MVC.

To sort our places into countries we need two new properties for the data model. placesByCountry will hold the places separated into their countries. countries will just hold the names of the countries sorted alphabetically.

@property (nonatomic, strong) NSDictionary *placesByCountry;
@property (nonatomic, strong) NSArray *countries;
   ...
@synthesize placesByCountry = _placesByCountry;
@synthesize countries = _countries;

Continue reading “Assignment #4 Extra Task #1”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Assignment #4 Task #9 Addendum

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

Your application must work in both portrait and landscape orientations on the iPhone. Support for the iPad is optional (though it will be required next week, so you can save time later by implementing it now). Use appropriate platform-specific UI idioms (e.g., you must use UINavigationControllers to present the information on the iPhone).

We start by deleting everything in the iPad storyboard and copy everything from the iPhone storyboard into the iPad storyboard. Remove the segues from the table views to the photo view controller.

Drag in a split view controller and remove its master and detail view. Instead wire up the tab bar controller as master and the photo view controller as detail view. Add a bar tool to the photo view controller and create an outlet to its class. Finally setup the split view controller as initial view controller.
Continue reading “Assignment #4 Task #9 Addendum”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail