Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename customActivityItems #44

Open
pimnijman opened this issue Dec 22, 2015 · 0 comments
Open

Rename customActivityItems #44

pimnijman opened this issue Dec 22, 2015 · 0 comments

Comments

@pimnijman
Copy link

I was looking for a way to set specify the URL that would be shared by the action button. I found the customActivityItems array instead.

customActivityItems suggests an array that will be used as the activity view controller's activity items, while this array will be used as the activity view controller's application activities.

if(self.customActivityItems != nil) {
    [activities addObjectsFromArray:self.customActivityItems];
}

UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[URLForActivityItem] applicationActivities:activities];

Suggestion: Rename customActivityItems to customApplicationActivities
or at least warn about this confusing in a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant