![]() We will use 'StoredRecords' class to store contact information so define some properties like 'Name', 'Address', 'Contact'. Now, goto the title bar of the screen and follow these steps, click on 'File' menu > 'New' > here click on 'File' > select 'Objective-C class' and click on 'Next' button > here name the class 'StoredRecords' and in Subclass of select 'NSObject' and click 'Next' > finally click on 'Create' button. From this list search for, and then select libsqlite3.dylib and click Add button.ģ. ![]() To add another library or framework click on the '+' button to display the full list. The Link Binary with Libraries section lists the libraries and frameworks already included in the project. Now select the Build Phases tab to display the build information. To add this library, select the target entry in the Xcode project navigator (the top entry with the product name) to display the General information panel. Any type of failure to include this library will result in build errors. Now include the SQLite dynamic library (libsqlite3.dylib ) during the link phase of the build process. First of all Create a Single View application project with a name “SQLiteExample ” and leave blank to class prefix and select iPhone in Devices and check mark both 'Use Storyborads' and 'Use Automatic Reference Counting'.Ģ. Now, follow the steps to create our SQLite sample:ġ. When we click on Save button a message will display that the contact successfully save or not. In our app we will use 'name, address, contact' fields with “Save” and “Find Contact” buttons. ![]() Ok we will create a Contacts Sample as like as Contacts app which we see in our simple mobile phone contacts section where we store our contacts information(names, addresses and contacts) in a SQLite database. Here we are assuming that you already know about SQLite Database, so we will only focus on our Contact Sample. We will also learn how to implement SQLite within our iPhone application and how to insert data into SQLite database using an input form and also displaying those data from a SQLite database in an UITableView. In this article we will learn how to create iPhone app using SQLite Database as an Back-End.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |