Domanda

I'm developing a very simple app to improve my coding skills which deals with famous quotations. I'd like to be able to have the user share them via Twitter, but if the quote's too long for Twitter, I'd ideally like to be able to do something other than say "Sorry, you can't share this one."

Is there a means by which I can post multiple tweets simultaneously, so that I could split the quote over multiple tweets? Would this even be worth bothering with, from a UX perspective? It's messy, but I do think the functionality of sharing should be included and I should attempt to overcome the problem.

So, specifically: can I post more than one tweet simultaneously with the Social framework?

And more subjectively: is there a better approach to a situation where data can be shared that sometimes fits in a tweet, and sometimes doesn't?

EDIT: I'm wondering whether a nice approach might be to take a screenshot of the quote itself in my detail view (it has a nice font, etc)., then post that to Twitter with some spiel like "Check out this great quote from xx author!". Thoughts on that approach?

È stato utile?

Soluzione

For anyone intersted: I split the quote into multiple substrings and tweeted them in order, after popping up an alert to confirm this with the user. I also gave the user the option of capturing a screenshot of that area of the screen and posting that as an image, which is a nice additional touch.

Altri suggerimenti

Use an NSURL object and load the contents into an NSString.

NSURL *url = [NSURL URLWithString: [NSString stringWithFormat:@\"http://tinyurl.com/api-create.php?url=%@\", [LongURLTextField text]]];
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top