Social action sheet (like on iOS 6) Social action sheet (like on iOS 6) ios ios

Social action sheet (like on iOS 6)


    NSString *textToShare = @"your text";    UIImage *imageToShare = [UIImage imageNamed:@"yourImage.png"];    NSArray *itemsToShare = @[textToShare, imageToShare];    UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:itemsToShare applicationActivities:nil];    activityVC.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll]; //or whichever you don't need    [self presentViewController:activityVC animated:YES completion:nil];

See UIActivityViewController documentation: https://developer.apple.com/documentation/uikit/uiactivityviewcontroller


It is actually a custom action sheet that you can easily create as well. In addition to this,you might want to look at this share kit framework.

https://github.com/ShareKit/ShareKit


matomo