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 »

Category in IOS

Create a new project in xocde under Single View Application, Create a new Objective-C Category file named NewCategory under subclass of NSString, In ViewController.h #import #import “NSString+NewCategory.h” @interface ViewController : UIViewController { IBOutlet UITextField *text1; IBOutlet UITextField *text2; } – (IBAction)removeDotsButton:(id)sender; -(IBAction)retunkey:(id)sender; @end In ViewController.m #import “ViewController.h” @interface ViewController () @end @implementation ViewController – (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } – (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be…

Continue reading »

ScartchCard Implementation in IOS

Create a new project in xcode under Single View Application, Download the ScratchCard Files from the below download link and import the fils into your project, http://www.mediafire.com/folder/hng3rx6nhit97/ScratchCard In ViewController.h #import @interface ViewController : UIViewController { IBOutlet UILabel *numberlabel; } @end In ViewController.m #import “ViewController.h” @interface ViewController () @end @implementation ViewController – (void)viewDidLoad { [super viewDidLoad]; numberlabel.text = @”12345678″; } – (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; } @end Go to the ViewController.xib and click the xib and goto the Identity Inspector and set the class name as…

Continue reading »