2012-08-01 4 views
0

내 앱에 Twitter 통합을 구현 중입니다. 그러나 빈 대화 상자를 보여주는 setintialtext.트위터에 null이 표시되는 초기 텍스트가

내 코드는 다음과 같습니다

TWTweetComposeViewController *tweetSheet = 
     [[TWTweetComposeViewController alloc] init]; 
     if ([TWTweetComposeViewController canSendTweet]) 
     { 

NSString *tw=[[NSString stringWithFormat:@"AT %@ %@ \n on %@\n %@ %@ %@ vs %@",lbl_vanueName.text,lbl_address.text,[arr_eventDate objectAtIndex:0],[arr_eventName objectAtIndex:0],[arr_EventType objectAtIndex:0],[arr_Contestant1 objectAtIndex:0],[arr_Contestant2 objectAtIndex:0]] retain]; 
      NSLog(@" tw is:%@",tw); // work fine & got all values 

      [tweetSheet setInitialText:tw]; 
      } 

답변

0

setInitialText 메서드의 반환 값 것입니다.

반환 값

YES 성공하는 경우 : 당신이 TWTweetComposeViewController의 문서를 선택하면 댓글이 있습니다. 텍스트가 현재 사용 가능한 문자 공간에 맞지 않거나 뷰가 사용자에게 제시되면 NO입니다.

텍스트가 맞지 않을 수 있습니다.

관련 문제