2013-05-07 37 views
1

一切工作正常,但它說「ios設備」,我希望它說實際的應用程序的名稱。我究竟做錯了什麼?使用Social Framework通過iOS 6應用程序共享內容說iOS設備?

這裏是我的代碼:

- (IBAction)doFacebook:(id)sender{ 
//check to see if facebook account exists 
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) { 

    // Create the view controller defined in the .h file 

    fb=[SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; 

    // make the default string 
    NSString *FBString= [NSString 
         stringWithFormat:@"%@\r via #GibberishGenerator", gibText.text]; 
    [fb setInitialText:FBString]; 
    // show the controller 
    [self presentViewController:fb animated:YES completion:nil]; 

    } 
} 
+2

什麼iOS設備說?哪個社交框架?你有沒有編寫任何代碼,或者我們應該猜測它是什麼?你期望它說什麼?它在哪裏說iOS設備? etc ... etc ... – Fogmeister 2013-05-07 15:32:48

+0

對不起,我不清楚。牆上的實際份額是「昨天通過iOS」。在其他應用程序中,我看到它說「通過blahblah應用程序發佈」 – jini 2013-05-07 15:36:21

+0

我也添加了代碼 – jini 2013-05-07 15:37:52

回答

2

iOS 6的共享表

的iOS 6的份額片是蘋果公司的整合Facebook的功能。

缺點

從默認歸因於iOS上的共享片帖子; 接觸Facebook的正確配置歸屬爲您的應用程序

Sharing and Distribution on iOS

+0

有沒有人經歷過這個過程(聯繫Facebook的歸屬地)誰可以提供一個快速鏈接誰聯繫以及要求什麼? – Michael 2013-11-14 16:01:38

相關問題