2013-05-10 37 views
2

我正在使用社交框架與FaceBook分享。是否可以在以下屏幕截圖中更改指示按鈕上的文字? 任何幫助,將不勝感激。是否可以在iOS 6中自定義FaceBook PostView?

enter image description here

+0

還沒有,所有你可以做的是重疊他們的按鈕等與您的自定義按鈕文本等,當它被輕敲,然後傳遞觸摸/事件到背景按鈕。 – 2013-05-10 05:49:27

+0

謝謝。你能建議我們如何訪問這個postview? – 2013-05-10 05:51:30

+0

哪個postview,您在屏幕截圖中顯示的那個?這些是本機對話框 - https://developers.facebook.com/docs/reference/ios/3.5/class/FBNativeDialogs如果需要,還可以使用對話框和WebDialogs - https://developers.facebook.com/docs/參考/ ios/3.5/ – 2013-05-10 05:54:39

回答

0

是你可以用波紋管方法的整合做,如果你可以利用社會框架與Facebook分享發送消息。

你只需要補充一點: -

- (void)findSubViewofFB:(UIView*)theView 
{ 
    for (UIView * subview in theView.subviews) 
    { 
     // subview.hidden=TRUE; 

     if ([subview isKindOfClass:[UIButton class]]) 
     { 
      UIButton *btn = (UIButton *)subview; 

      if([btn.titleLabel.text isEqualToString:@"Send"]) 
      { 
       [btn setTitle:@"msg" forState:UIControlStateNormal]; 

      } 
     } 
     [self findSubViewofFB:subview]; 
    } 
} 

,並在郵件中添加此上述方法派類: -

[self findSubViewofTwitter:facebook.view]; 

我只是測試它在我的使用社會框架的Twitter的集成並改變發送Button標題爲使用上述方法和我的Tweet消息框如下所示: -

enter image description here

+0

但你能告訴我在哪裏打電話[self findSubViewofFB:objFB.view]? – 2013-05-10 09:13:06

+0

是你使用這種方法SLComposeViewController * controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; [controller setInitialText:message];這種方法 – 2013-05-10 09:23:17

+0

確切地說..它是爲twitter工作,但不適合faceboook。請任何解決方案? – 2013-05-10 09:34:17

相關問題