0
我從我的iPhone應用程序,這兩個FB和Twitter的使用下面的代碼張貼到Twitter和Facebook
發佈,但我怎麼能直接發佈,而不顯示作曲家
-(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];
}
如何使用......? 請給我一個正確的想法與我的上述代碼 –