【问题标题】:How to change the font of TWTweetComposeViewController in iOS如何在 iOS 中更改 TWTweetComposeViewController 的字体
【发布时间】:2013-07-10 02:55:43
【问题描述】:

您好,我正在尝试从我的 iOS 应用发推文。

在iOS5中,我们可以使用Twitter Framework

所以我写了以下代码来发推文。

if([TWTweetComposeViewController canSendTweet]) {

        TWTweetComposeViewController *controller = [[TWTweetComposeViewController alloc] init];
        [controller setInitialText:self.txtView.text];
        controller.completionHandler = ^(TWTweetComposeViewControllerResult result)  {

            [self dismissModalViewControllerAnimated:YES];

            switch (result) {
                case TWTweetComposeViewControllerResultCancelled:
                    break;

                case TWTweetComposeViewControllerResultDone:
                    break;

                default:
                    break;
            }
        };

        [self presentModalViewController:controller animated:YES];
    }

我可以用上面的代码发推文。但我的应用中有我的自定义字体。

所以我的自定义字体推文就像下面的图片。

那么我可以更改TWTweetComposeViewController 的字体吗? 如果可以的话,怎么改?

【问题讨论】:

    标签: ios cocoa-touch twitter


    【解决方案1】:

    不,你不能改变 TWTweetComposeViewController 的字体。

    【讨论】:

    • 那么还有其他方法吗?
    猜你喜欢
    • 1970-01-01
    • 2014-03-17
    • 2014-01-09
    • 2018-12-20
    • 1970-01-01
    • 2023-04-08
    • 2012-03-10
    • 2012-03-29
    • 1970-01-01
    相关资源
    最近更新 更多