3
當您在iOS上使用SLComposeViewController時,如何才能獲得您的tweet的108個字符,而不是通常的140個字符?SLComposeViewController中的108個字符
顯示在下面的屏幕截圖...
我使用下面的代碼創建這個SLComposeViewController ...
- (IBAction)compose:(id)sender {
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) {
SLComposeViewController *composeViewController = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter];
[composeViewController addImage:[UIImage imageNamed:@"twitter_logo.png"]];
[composeViewController setCompletionHandler:^(SLComposeViewControllerResult result) {
if (result == SLComposeViewControllerResultDone) {
UIAlertView *success = [[UIAlertView alloc] initWithTitle:@"Success" message:@"Your tweet was successfully posted!" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[success show];
}
else {
[self dismissViewControllerAnimated:YES completion:nil];
}
}];
[self presentViewController:composeViewController animated:YES completion:nil];
} else {
UIAlertView *error = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Error" delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[error show];
}
}
我在做什麼錯?
我認爲回形針是圖像是附件的提示。 –