Skip to content

Instantly share code, notes, and snippets.

Aaron Wardle aaronwardle

Block or report user

Report or block aaronwardle

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@aaronwardle
aaronwardle / sharedButtonCode
Last active Dec 18, 2015
UIActivityViewController Example
View sharedButtonCode
- (void)shareButtonClicked {
//-- set strings and URLs
NSString *textObject = @"Information that I want to tweet or share";
NSString *urlString = [NSString stringWithFormat:@"http://www.mygreatdomain/%@", _selectedPageString];
NSURL *url = [NSURL URLWithString:urlString];
NSArray *activityItems = [NSArray arrayWithObjects:textObject, url, nil];
//-- initialising the activity view controller
You can’t perform that action at this time.