-
Fork repo which has only a README.md and .gitignore.
-
Clone your fork locally to your laptop.
-
Create a project into that cloned directory. Name it VictoriaAlbert.
-
Work on the assignment.
-
Upon completion, commit locally.
git commit -a -m "I'm done"
-
Push to your repo.
git push origin master
-
Go to github and make a pull request.
Build an app on a pattern we've been following often lately: initiate an asynchronous API call that populates a table view with a list of items that have titles, subtitles and thumbnails. Selecting a row segues to a detail view controller that shows a full sized image.
Extra credit:
- Make the search string editable by the user.
- Update the title of the view controllers so that the title appears in the nav bar.
- Include more textual information in the detail view.
- All API calls to the internet must be performed asynchronously.
- All updates to the UI must be performed on the main thread.
- to use a default
UITableViewCell
type. - if the images aren't all perfectly square though most are.
- to look at and use parts of recent projects. It's expected that you will.
- to google for information. You should cite the URL of any code you copy.
- to cheat, defined as:
- using another student's code
- asking questions of one another
...so go ahead and close Slack during the assessment.
http://www.vam.ac.uk/api/json/museumobject/search?q=ring
This is a basic query and can remain static for full credit. But you can use the other query strings and forms described in the documentation, if you like.
Iterate over the records
array and extract data from the fields
key:
...
records: [
{
pk: 9431,
model: "collection.museumobject",
fields: {
primary_image_id: "2006AM6786",
rights: 3,
year_start: 1540,
object_number: "O78598",
artist: "Unknown",
museum_number: "M.5-1960",
object: "Seal ring",
longitude: "-0.12714000",
last_processed: "2016-10-28 19:07:00",
event_text: "",
place: "London",
location: "British Galleries, room 58e, case 5",
last_checked: "2016-10-28 19:07:00",
museum_number_token: "m51960",
latitude: "51.50632100",
title: "",
date_text: "ca. 1545 (made)",
slug: "seal-ring-unknown",
sys_updated: "2015-02-18 00:00:00",
collection_code: "MET"
}
},
.
.
.
]
Cell titles should be constructed from {object}, {date_text} - {place}, for example,
Seal ring, ca. 1545 (made), London
Cell subtitles should contain the title
field, which is often empty.
For the cell images construct image urls based on the file naming convention described in the "Images and Media" portion of the documentation. Use the "o" size. For example:
http://media.vam.ac.uk/media/thira/collection_images/2006AM/2006AM6763_jpg_o.jpg
This renders as:
And on the detail page show the full size image.
http://media.vam.ac.uk/media/thira/collection_images/2006AM/2006AM6763.jpg