Skip to content

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

Notifications You must be signed in to change notification settings

bedirhansavas/Swift-Local-Storage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages