Homework 6


Downloads

None; start from scratch this week.

Aim

This homework will ensure that you make some useful progress towards the final project good and early.

Task

Create a view that can display a 12-by-12 grid of letters. All I want is an app that, on startup, displays a 12-by-12 grid of evenly spaced letters (occupying the entire screen). I don't care what the letters are.

Hints

Looking at the Draw code might help.

More than that, the Core Graphics documentation will help. Drawing is done with C functions, not classes, so the docs are organized a little differently from what you're used to. But pay special attention to CGContext.

It would probably serve you well to at least think about responding to touch events. For example, how would you figure out which letter the user tapped?

Due

Tuesday March 3, at the beginning of class (6:30PM)

Submission

LabFusion (delete the build directory and zip the project directory)

Solution

Here (partial)

Back to the main page