我使用以下代码从我的 iphone 应用程序发布到 FB 和 twitter
但是我怎样才能在不显示作曲家的情况下直接发布
-(IBAction)fbposting{
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook ]) {
slComplose = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook];
[slComplose addImage:imageV.image];
[slComplose addURL:[NSURL URLWithString:@"http://newagesmb.com"]];
[slComplose setInitialText:self.textView.text];
[self presentViewController:slComplose animated:YES completion:nil];
}
[self.textView resignFirstResponder];
}
-(IBAction)twitposting{
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter ]) {
slComplose = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[slComplose setInitialText:self.textView.text];
[slComplose addURL:[NSURL URLWithString:@"http://newagesmb.com"]];
[slComplose addImage:imageV.image];
[self presentViewController:slComplose animated:YES completion:nil];
}
[self.textView resignFirstResponder];
}