Skip to content

Trying to update iOSNativeShare.m to work with images and Facebook again #30

@Vixxd

Description

@Vixxd

Hi there,

I have no experience with Objective-C and have been working through the night to try and get an in-game highscore image sharing to Facebook again along with the other options. I see the ReadMe has been updated which links to a comment regarding this, but unfortunately this offers no further instructions.

Within initWithText in iOSNativeShare.m I have attempted the following, commenting out the original Activity that has items passed into it.

//Set up the sharing activity and add the items
//UIActivityViewController *activity = [[UIActivityViewController alloc] initWithActivityItems:items applicationActivities:Nil];

CustomActivityProvider *ActivityProvider = [[CustomActivityProvider alloc] initWithPlaceholderItem:@""];

CustomActivityProvider is subclass made from these instructions and here and here, but these only seems to handle one thing being shared (string, url, image) for different sharing activities, rather than the array of items I want to use (e.g. 2 things for Facebook and 3 things for Twitter).

Can anyone with more Objective-C experience than me help me out with this? Thanks

All I essentially want to do is make an Activity that takes in 4/5 sharable items within an array, and depending on whether or not it is being shared via Facebook or Twitter, certain items are chosen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions