iOS

[ iOS ] How to get date from NSDate

 

 

Introduction

Today, I’ll introduce how to use NSDate by creating a simple app which displays year, month, date and day.

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

 
screen

 

Label Font(size) @property
2016 Avenir Heavy (22) titleLabel
June Avenir Heavy (24) monthLabel
19 Avenir Heavy (46) dateLabel
Sun Avenir Heavy (18) dayLabel

 

Color
Orange #ffc321
Green #1abc9c

 

 

Hope you enjoy coding 🙂

 
 

Video

iOS (Objective-C) Tutorial – NSDate –

 
 

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 🙂