Note that this tutorial is non for beginner, I'll only summarized the steps together with render the github repository for the project.
Prerequisite:
1.) You should await at the code inward my todo listing tutorial earlier this one.
2.) Create an anime sqlite database using your preferred tool, I've used SQLite Manager plugin for firefox.
Steps:
1.) Create a novel empty ios project.
2.) Select the project, together with inward the full general tab nether Linked Frameworks, add together libsqlite3.0.dylib.
3.) Add the sqlite database we've created, correct click on the projection folder click Add Files..., thence direct the anime.sqlite file together with banking corporation jibe "Copy items into destination...". Now nosotros bring the database within our project.
Your projection should await like:
4.) Create the master copy storey board within the SqliteAnimeDb folder.
5.) In the projection setting laid upward the master copy interface to the storey board we've created.
6.) Comment these iii lines inward the AppDelegate class:
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; // Override betoken for customization later application launch. self.window.backgroundColor = [UIColor whiteColor]; [self.window makeKeyAndVisible];
7.) I'll allow the code explicate but I'm attaching the ii views I've created for demo.
In this sentiment nosotros display the listing of anime titles alongside writer subtitle. Clear together with reload practise the functions respectively on the database. + volition navigate to the side yesteryear side view.
This sentiment is where nosotros add together an anime object.
Note:
KBSSqliteConnection, is the course of didactics where nosotros set the sqlite database operations similar create table, opened upward db, insert record, etc.
Github repository:
0 komentar:
Please comment if there are any that need to be asked.