Sqlite Database in IOS

Create a new Project and add libsqlite3.dylib Framework. And Download the Base64.h & Base64.m File from the download link below, http://www.mediafire.com/folder/c6dabipw5pv7g/Base64 After Download import the 2 Base64.h & Base64.m Files into your project. This 2 files are used to convert image to string and store in database. And create a sqlite file from Terminal using the code below, sqlite3 sampletest.sqlite; The above code creates the sqlite file but sometimes the sqlite file doesn’t shows up in the respective place You created. So add the next…

Continue reading »

NSThread in IOS

Create a new Project in xcode under Single VIew Application, Design & Output Looks like this, In ViewController.h #import @interface ViewController : UIViewController { IBOutlet UILabel *label1; IBOutlet UIProgressView *progressview; IBOutlet UIButton *startThreadButton; IBOutlet UILabel *label2; } @property (nonatomic, retain) IBOutlet UILabel *label1; @property (nonatomic, retain) IBOutlet UIProgressView *progressview; @property (nonatomic, retain) IBOutlet UILabel *label2; – (IBAction) startThreadButton:(UIButton *)sender; – (IBAction) SliderChanged:(UISlider *)sender; @end In ViewController.m #import “ViewController.h” @interface ViewController () @end @implementation ViewController @synthesize label1,label2,progressview; – (void)viewDidLoad { [super viewDidLoad]; // Do any additional…

Continue reading »

Plist File in IOS

Create a new project in xcode and Go to File — New — File — Under IOS Section — Resource — Property List — Next Give the name for Save as — data — Create and edit the data.plist file in your for type array as, also create another plist file named as data1.plist this time its for type Dictionary as, In ViewController.h #import @interface ViewController : UIViewController { IBOutlet UILabel *label1; IBOutlet UILabel *label2; IBOutlet UILabel *label3; IBOutlet UILabel *label4; IBOutlet UILabel *label5; IBOutlet…

Continue reading »