I have got an array of four tablecells, the first when pressed should call a 'compose tweet function', the second, facebook, the third open youtube and the last 'compose' email. I am in a pickle on this one because I am not sure of how to call each button separately. Here is my code to 'implement the compose tweet function'
-(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter])
{
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[tweetSheet setInitialText:@"@SybreLabs"];
}
}
@end
let me know what you all think, please i am new to coding