Assignment #4 Task #4

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

When the user chooses a place from the list obtained in Required Task #1, you must query Flickr again to get an array of 50 recent photos from that place and display them in a list. Do this using the FlickrFetcher method photosInPlace:maxResults: (it returns an array of dictionaries, each of which contains info about a photo).

In the iPhone storyboard we add a new table view controller, add a new class for it and set it in storyboard. From the cell inside the top-places table view controller create a push segue to the new table view controller. Don’t forget to set the style and the reuse identifier of the cell of the new table view controller.
Continue reading “Assignment #4 Task #4”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Assignment #4 Task #3

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

Anywhere a place appears in a table view in your application, the most detailed part of the location (e.g. the city name) should be the title of the table view’s cell and the rest of the name of the location (e.g. state, province, country, etc.) should appear as the subtitle of the table view cell.

The task hints that we will have to use this functionality somewhere else, too. Thus we create two helper functions for the title and the subtitle of the table cells. For both functions we look for the place identifier and cut it into pieces. For the title we take the first piece. For the subtitle we create a new array only using the other pieces and paste them together again:
Continue reading “Assignment #4 Task #3”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Assignment #4 Task #2

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

Create a UITabBarController-based user-interface with two tabs. The first shows a UITableView with the list of places (in alphabetical order) obtained in Required Task #1. The second shows a UITableView with a list of the 20 most recently viewed photos.

Go to the iPhone storyboard, remove the existing view controller and add a tab bar controller. Remove the two new view controllers by replacing them with table view controllers and wire them up using relationship segues. Set the identifier of the tab bar item of the first controller to “Top Rated”, the second one to “Recents”. Change the style of the table cells to “Subtitle” and set the identifier of the cell of the first controller to “Top Places Cell” and of the second one to “Recent Photos Cell”
Continue reading “Assignment #4 Task #2”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Assignment #4 Task #1

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

The forth assignment creates a new application that presents a list of popular Flickr photo spots – a tab-based application to let users browse the most popular places on Flickr and watch photos taken there.

Use the provided FlickrFetcher class method topPlaces to get an array of the most popular Flickr photo spots in the last day or so. It is an array of NSDictionarys which contain information about each place.

Start by creating a new universal app: File -> New -> Project… -> Single View Application
Continue reading “Assignment #4 Task #1”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Lecture #9: Table Views

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

Lecture nine is named “9. Table Views (October 25, 2011)” and can be found at iTunes. Its slides are available at Stanford.

The theoretical part starts with table views which allow to display static or dynamic lists of data in different styles. A table consists of a header, a footer and table cells possible divided in sections (also with a header and a footer). A cell can be of type subtitle, basic, right and left detail, as well as completely customized.
Continue reading “Lecture #9: Table Views”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Friday Session #4: Introduction to AVFoundation

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 AV Foundation Framework. It can be found on iTunes titled “Introduction to AVFoundation (October 21, 2011)”.

In this lecture Salik Syed gives an overview on how the Objective-C interface can be used to access audio-visual media under iOS. After an high level discussion on the API he shows in a demo how to manipulate a video from the camera of an iPhone in real time.
Continue reading “Friday Session #4: Introduction to AVFoundation”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail

Lecture #8: Controller Lifecycle & Image/Scroll/WebViews

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

Lecture eight is named “8. Controller Lifecycle & Image/Scroll/WebViews (October 20, 2011)” and can be found at iTunes. Its slides are available at Stanford.

It starts with a theoretical part about the View Controller Lifecycle, the Image, the Web and the Scroll View.
Continue reading “Lecture #8: Controller Lifecycle & Image/Scroll/WebViews”

FacebooktwitterredditpinterestlinkedintumblrmailFacebooktwitterredditpinterestlinkedintumblrmail