Hi,
I am still learning the ropes of iOS development. I am new to Xcode (more versed in C#/C++ in Visual Studio... i know i know)
I am trying to make a simple app that has data in a locally stored SQLite database. Say it is called printers. Printers has the uid (pk), printer model, toner model, and quantity for example. I like to group it based on printer models, and each section under the group all the toners for each model. I am fairly decent at SQL, but I do not understand anything about the UITableView and how to populate it from a database notwithstanding.
So, I already have all the neccessary items intalled to develop such, but how do I one, access the database, and two, place the elements from
the database onto the userinterface? The group header should be the printer model, and each element is toner for that model, so obviously most of them will have one item, but the colour printers or the higher end models will have the colours and other consumables.
I haven't decided what action will occur when I click the model. I was hoping the quantity would be easily be there, but not sure yet.
And obviously I will have a way of adding/decrementing units.
But this is a solo project that I am building on my own, not for sale, not for business, just something to teach me the ropes of databases
so I can better learn iOS development.
But I had googled around and found no tutorial that really helps me to do what I want. Obviously I am not asking you guys to code everything
for me, but I really don't know where to start in getting the data from sqlite into uitableview.
Thanks.
PS- Perhaps property lists/dictionaries are a better way of doing this, but I had always liked using databases for my C# projects (but those were desktop apps where it went to a remote mysql database)
I am still learning the ropes of iOS development. I am new to Xcode (more versed in C#/C++ in Visual Studio... i know i know)
I am trying to make a simple app that has data in a locally stored SQLite database. Say it is called printers. Printers has the uid (pk), printer model, toner model, and quantity for example. I like to group it based on printer models, and each section under the group all the toners for each model. I am fairly decent at SQL, but I do not understand anything about the UITableView and how to populate it from a database notwithstanding.
So, I already have all the neccessary items intalled to develop such, but how do I one, access the database, and two, place the elements from
the database onto the userinterface? The group header should be the printer model, and each element is toner for that model, so obviously most of them will have one item, but the colour printers or the higher end models will have the colours and other consumables.
I haven't decided what action will occur when I click the model. I was hoping the quantity would be easily be there, but not sure yet.
And obviously I will have a way of adding/decrementing units.
But this is a solo project that I am building on my own, not for sale, not for business, just something to teach me the ropes of databases
so I can better learn iOS development.
But I had googled around and found no tutorial that really helps me to do what I want. Obviously I am not asking you guys to code everything
for me, but I really don't know where to start in getting the data from sqlite into uitableview.
Thanks.
PS- Perhaps property lists/dictionaries are a better way of doing this, but I had always liked using databases for my C# projects (but those were desktop apps where it went to a remote mysql database)