Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have watched a few tutorials on tweeting from an iOS app but they only show tweeting images or urls. So far all I have is
Objective-C
-(IBAction)ShareTW {
    if([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]){
        slComposeViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
        [slComposeViewController addImage:[UIImage imageNamed:@""]];
        
    }
}


instead of adding the image how can I make it into a string along the lines of "Hey guys check out my new high score on the app! I score a %i", HighScore? I tried to type in NSString instead of addImage, but that's not an option and I am not sure if slComposeViewController is needed, I can only assume it is because I have not found anything on this topic.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900