Bookstore Game

It is intended to learn about "How to manage a data when a project needs access to one data from multiple view controllers." In conclusion, I've resolved using Singleton patterns.

System Diagram





Application

In a project, several ViewController manage the data in a singleton pattern to access one piece of data, without any database or server interface.

Publication of a book

You can write your own book. Published books are registered in bookstores and sold by the librarians.

Book search

The author can check his books, and the librarian can search the list of books that are registered in the bookstore by "book name" or "author name"

Book sales

The books that are registered at the bookstore are sold by librarians, and the number of books sold will decrease and can be sold further by the age of 0 books. If the author reproduces a book that has sold out, the number of books available will increase.

Search All Books

The librarian can look up the whole number of books that are registered in the bookstore.

Screenshots

Take a look at the app by its screenshots

My efforts were rewarded

What I learned through this project

The button provided a clear way to switch between several ViewController.

DongHwan kim

The situation required access to one data from several View controllers without the use of a database. To solve this, I could study Singleton Patterns.

DongHwan kim