I want to share image,link through own app as activity type is used subclass UIActivity class and used this action method code
NSString *message = [NSString stringWithFormat:@"%@\n",[self.dataModel artLook_Title]];
UIImage *imageToShare =self.profileImageView.image; //[UIImage imageNamed:@"test.jpg"];
if (self.tinyURL==nil) {
[self initilizeTinyURL];
}
NSArray *items = @[message,[self tinyURL],imageToShare];//
NSArray *activities = @[[self customActivity],UIActivityTypePostToFacebook,UIActivityTypePostToTwitter];
UIActivityViewController *controller = [[UIActivityViewController alloc]initWithActivityItems:items applicationActivities:activities];
[self presentViewController:controller animated:YES completion:nil];
I am crash at
[self presentViewController:controller animated:YES completion:nil];
Error:-[__NSCFConstantString _beforeActivity]: unrecognized selector sent to instance 0x38f2b6b8
Any help will appreciated.