【发布时间】: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