I am currently creating a SLComposeViewController using the following code...
- (IBAction)compose:(id)sender {
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) {
SLComposeViewController *composeViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[composeViewController setInitialText:@"Status from DummyCode.com"];
[composeViewController setCompletionHandler:^(SLComposeViewControllerResult result) {
if (result == SLComposeViewControllerResultDone) {
UIAlertView *success = [[UIAlertView alloc] initWithTitle:@"Success" message:@"Your status was successfully posted!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[success show];
}
else {
[self dismissViewControllerAnimated:YES completion:nil];
}
}];
[self presentViewController:composeViewController animated:YES completion:nil];
} else {
UIAlertView *error = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Error" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[error show];
}
}
I have an idea that I want to implement into my app. I want to keep "- DummyCode.com/social-media-app" on to the end of every tweet. I understand that it is probably not possible to lock this text or put it in at the end when the user presses "Send". If there is a workaround for one of these ideas please let me know.
But I have an idea that seems more possible, is it possible for me to move the cursor from the end of that text to the beginning so a user is more likely to leave that text on there.
Shown in the screenshots below. The first one is how it is now and the second is how I want it to be when I implement this little idea.
Is this even possible? Thanks!
-Henry