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

 

LabelFont(size)@property
2016Avenir Heavy (22)titleLabel
JuneAvenir Heavy (24)monthLabel
19Avenir Heavy (46)dateLabel
SunAvenir 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 🙂