Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.99 KB

README.md

File metadata and controls

34 lines (18 loc) · 1.99 KB

Swift-Local-Storage

This mobile application creates a local storage. User can input name and birthday and user can see informations even if the application is closed.

First of all I have designed aspect of application from Main.storyboard.

Ekran Resmi 2021-04-23 15 06 32

And I have linked my elements to ViewController.swift. Later I have written my application codes. In this project, I have used UserDefaults. This library provides to store your informations. You can see these codes below.

Here these codes are in button function.

Ekran Resmi 2021-04-23 15 55 57

When user click save button the app save informations.

4-23 15 08 04 kopya

After closing app and when open again, because I have used UserDefaults, user can see informations in the screen.

Ekran Resmi 2021-04-23 15 08 44

After I have written deleting codes. You can see these code in deleteButton functions.

Ekran Resmi 2021-04-23 15 56 14

When user click delete button all information is lost.

1-04-23 15 09 07 kopya

And again when you close and open again the app you can see no information.

Ekran Resmi 2021-04-23 15 06 32