IOS app with sqlite

0 ankit bhatnagar · June 3, 2015
Hi Bucky,

could you please post some example of swift with sqlite 

Thanks
Ankit

Post a Reply

Replies

Oldest  Newest  Rating
0 uma singh · September 16, 2015
First of we will create a variable pointer to structure of type sqlit3 that will act as the reference of our database. We will be working with the database in the view controller for our application as the best place to declare the variable with this need to import the sqlite3.h header file in to any files it is also a good time to declare a NSString property in which to store the path to database. As follow.... 
#import <sqlite3.h>

@interface DatabaseViewController : UIViewController

@property (strong, nonatomic) NSString *databasePath;
@property (nonatomic) sqlite3 *contactDB;
@end
  • 1

iOS Development / Swift

107,080 followers
About

This forum is for questions, comments, and general discussion about iOS Development and Swift.

Links
Moderators
Bucky Roberts Administrator