hi now i am trying Integrate What's app in our app
i have done already integrate Tweet
:-in this app i create two buttons one(chooseImagePressed) button is choose the image form local file and then and then second(tweetButtonPressed) this is post the image to Tweeter
- (IBAction)tweetButtonPressed:(id)sender
{
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter])
{
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"Look at this nice picture!"];
[tweetSheet addImage:self.imageView.image];
[self presentViewController:tweetSheet animated:YES completion:nil];
}
else
{
UIAlertView *alertView = [[UIAlertView alloc]
initWithTitle:@"Error"
message:@"please setup Twitter"
delegate:self
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alertView show];
}
}
- (IBAction)chooseImagePressed:(id)sender
{
self.pickerController = [[UIImagePickerController alloc] init];
self.pickerController.delegate = self;
self.pickerController.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentViewController:self.pickerController animated:YES completion:nil];
}
#pragma mark
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info;
{
self.imageView.image = [info objectForKey:UIImagePickerControllerOriginalImage];
[self dismissViewControllerAnimated:YES completion:nil];
}
Please give me any idea about the how to integrated what's app into our app
Please tell me this is possible or Not
Thanks