如何在SLComposeViewController中使用UIKeyboardAppearanceDark?
SLComposeViewController类为用户提供了一个视图,用于撰写支持的社交网络服务的帖子.
SLComposeViewController *controller = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; [self presentViewController:controller animated:YES completion:nil];
SLComposeViewController Class Reference
丑陋!
这是浅色键盘在深色背景下的外观:
小样!
这是黑暗键盘在深色背景下的外观:
解决方法
我尝试过几种方法.我发现工作的唯一方法是自定义整个ComposeViewController.我也相信这是唯一可能的方式.
我发现一个开源项目调用了REComposeViewController,我将其定制为默认情况下具有UIKeyboardAppearanceDark.我已经上传到Github你可以下载并玩它.
项目:https://github.com/voyage11/SLComposeViewControllerWithBlackKeyboard
附加屏幕截图: –