I am attempting to write an application in which I have two text fields that I will be using for input. The input taken from the text fields are being initialized as a string. So what I want to accomplish is:
- Create an SQLite database (file) that will be saved within the Xcode project (I’m not sure where it can be saved to, but I would need to be able to read it and write to it).
- I then want to place the strings (from the text field inputs) into the SQLite table, which will only have two fields (for simplicity). I’m using a button to accept the input from the text fields, place the input into strings, and then put the value of the strings into a label(s).
- I ultimately will want to place the strings from the text fields into the table, and then read the table to “grab” the strings and display them into the labels. All of this would be done by the click of a button.
I realize this is very specific, but I have been having a difficult time finding anything simple to accomplish this. I am very new to iOS development and I appreciate if anyone could be as specific and detailed as possible, or at least point me to some resources that would teach me how to accomplish this.
I am using Xcode v4.3.2 and I do not use Storyboard or ARC. I tried to be as detailed as possible, but as you can, my goal is really simple.
I’m tapped out and I appreciate all the help I can get.
Thanks!
-Matt
a simple query snippet looks like: