iOS

[ iOS ] How to create a Stopwatch

 

 

Introduction

In this video, I’ll show you how to create a stopwatch app.

It’s a very simple application, but it includes a very important class, NSTimer.

Hope you like this stopwatch app 🙂

 

screen

 

I set font and colors as follows. (You can check them in the video.)

Font(size) @property
00:00:00 Verdana (48) timerLabel
Start Verdana (16) startBtn
Reset Verdana (16) resetBtn
Color
Navy #34495E
Red #F26058

 
 

Video

iOS (Objective-C) Tutorial – How to Create a Stopwatch –

 
 

Sample Code

ViewController.h

 

ViewController.m

 

ABOUT ME
Sara
Working as a freelance programmer in Japan. I try to make coding as simple as possible. Hope you enjoy coding 🙂