Facebook and Twitter Sharing in IOS

Create a new Project in xcode and add Social.framework into your project. Good technical learning during corona times as well. Check Whether you have signed in facebook and twitter account in your iphone settings.If not sign in. In ViewController.h file, #import @interface ViewController : UIViewController – (IBAction)shareButton:(id)sender; @end In ViewController.m file, #import “ViewController.h” #import @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]; //…

Continue reading »

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 »