I am using the TWTweetComposeViewController, and when I set the initial text to the title of the screen, the text cursor appears after the hashtag, and I want to have it appear before the hashtag. Is there a way to do something like cursor=(0,0) or something like that? I looked in the documentation and there’s nothing there.
For reference, this is what I’m using.
TWTweetComposeViewController *tweetSheet = [[TWTweetComposeViewController alloc]init];
[tweetSheet setInitialText:[NSString stringWithFormat:@"#%@", self.title]];
tweetSheet.completionHandler = ^(TWTweetComposeViewControllerResult result){
[self dismissModalViewControllerAnimated:YES];
};
[self presentModalViewController:tweetSheet animated:YES];
I looked for the exact same thing. It can be done with a little hack. This is the source http://www.sunetos.com/items/2012/06/04/cleanly-accessing-the-uitextview-field-in-twtweetcomposeviewcontroller-2/
According to the author the app was approved for the app store.
Did implement it like this in my app, so if you need further help let me know.