Homework 1


This homework is a simple extension of the application from the first class.

Downloads

Finished code from first class: here.

Aim

In the first class, we saw how to make a button that increments a counter variable and displays its current value in a text field. This homework ensures that you’re familiar with outlets and actions — how to declare, set and use them. It also forces you to look up something you haven’t seen before in the SDK documentation.

Task

Make an app with a progress bar and a button. The progress bar should start at 0%. Each time the user presses the button, 10% of the progress bar should fill up, so that after 10 presses, the progress bar is full. After that, button presses should have no effect.

Hints

The first place you should look is the documentation for UIProgressView. The steps you have to do are largely the same as shown in the first class, except you need to learn how to use UIProgressView.

It’s OK to just modify the finished code from the first class, but it would be better practice for you to make the project from scratch.

Due

Tuesday January 20, at the beginning of class (6:30PM)

Submission

Delete the build directory in your project directory, then zip the project directory and submit it through LabFusion.

Solution

Here

Back to the main page