<small id='IF1Ph'></small><noframes id='IF1Ph'>

      • <bdo id='IF1Ph'></bdo><ul id='IF1Ph'></ul>
    1. <legend id='IF1Ph'><style id='IF1Ph'><dir id='IF1Ph'><q id='IF1Ph'></q></dir></style></legend>

      1. <i id='IF1Ph'><tr id='IF1Ph'><dt id='IF1Ph'><q id='IF1Ph'><span id='IF1Ph'><b id='IF1Ph'><form id='IF1Ph'><ins id='IF1Ph'></ins><ul id='IF1Ph'></ul><sub id='IF1Ph'></sub></form><legend id='IF1Ph'></legend><bdo id='IF1Ph'><pre id='IF1Ph'><center id='IF1Ph'></center></pre></bdo></b><th id='IF1Ph'></th></span></q></dt></tr></i><div id='IF1Ph'><tfoot id='IF1Ph'></tfoot><dl id='IF1Ph'><fieldset id='IF1Ph'></fieldset></dl></div>
      2. <tfoot id='IF1Ph'></tfoot>

        如何编辑 UIAlertAction 文本字体大小和颜色

        How to edit UIAlertAction text font size and color(如何编辑 UIAlertAction 文本字体大小和颜色)

        <small id='gqczC'></small><noframes id='gqczC'>

        • <i id='gqczC'><tr id='gqczC'><dt id='gqczC'><q id='gqczC'><span id='gqczC'><b id='gqczC'><form id='gqczC'><ins id='gqczC'></ins><ul id='gqczC'></ul><sub id='gqczC'></sub></form><legend id='gqczC'></legend><bdo id='gqczC'><pre id='gqczC'><center id='gqczC'></center></pre></bdo></b><th id='gqczC'></th></span></q></dt></tr></i><div id='gqczC'><tfoot id='gqczC'></tfoot><dl id='gqczC'><fieldset id='gqczC'></fieldset></dl></div>

              <tbody id='gqczC'></tbody>
              <bdo id='gqczC'></bdo><ul id='gqczC'></ul>
            • <tfoot id='gqczC'></tfoot>
                  <legend id='gqczC'><style id='gqczC'><dir id='gqczC'><q id='gqczC'></q></dir></style></legend>

                  本文介绍了如何编辑 UIAlertAction 文本字体大小和颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何编辑 UIAlertAction 文字大小和颜色?我采用了一个 UIAlertController 来适应它如何编辑大小.这是我的代码

                  How to edit UIAlertAction text size and color? I have taken a UIAlertController acoording to it how to edit the size. This i smy Code

                  UIAlertController *controller = [UIAlertController alertControllerWithTitle:@"Do you wish to logout?" message:@"" preferredStyle:UIAlertControllerStyleAlert];
                  UIAlertAction *logOut = [UIAlertAction actionWithTitle:@"Log Out" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {}];
                  

                  现在我想要我的注销"文本,字体大小为 22,绿色,半粗体.

                  Now i want my 'Log Out' text with font size 22 and green color and in semibold.

                  推荐答案

                  你可以使用更新文本颜色

                  You can update text color using

                         UIAlertAction *myGoalAction = [UIAlertAction
                                                      actionWithTitle:NSLocalizedString(@"My Title", @"My Title")
                                                      style:UIAlertActionStyleDefault
                                                      handler:^(UIAlertAction *action)
                                                      {
                  
                                                      }];
                         [myGoalAction setValue:[UIColor greenColor] forKey:@"titleTextColor"];
                  

                  没有有效的方法来更新字体大小.我建议你使用标准字体大小.

                  There is no efficient way to update font size.I will suggest you to use standard font size.

                  UIAlertAction 标题标签是私有变量,不能直接访问.标签位于 3 级私有视图层次结构中.使用更大的字体显示注销操作对应用程序有意义.

                  UIAlertAction title label is private variable and not accessible directly. Label comes inside 3 level private view hierarchy. Showing logout action with bigger font make sense for app.

                  有很多开源解决方案可用.我会推荐尝试this

                  There are many open source solution available.I will recommend to try this

                  这篇关于如何编辑 UIAlertAction 文本字体大小和颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Hardware Volume buttons change in app volume(硬件音量按钮更改应用程序音量)
                  Cocos2d - How to check for Intersection between objects in different layers(Cocos2d - 如何检查不同层中对象之间的交集)
                  Resume game cocos2d(恢复游戏 cocos2d)
                  Cocos2D + Disabling only Retina iPad Graphics(Cocos2D + 仅禁用 Retina iPad 图形)
                  How to convert 32 bit PNG to RGB565?(如何将 32 位 PNG 转换为 RGB565?)
                  Proper cocos2d scene restart?(正确的 cocos2d 场景重启?)

                  <small id='S9eP8'></small><noframes id='S9eP8'>

                  <legend id='S9eP8'><style id='S9eP8'><dir id='S9eP8'><q id='S9eP8'></q></dir></style></legend>
                    <tbody id='S9eP8'></tbody>
                • <i id='S9eP8'><tr id='S9eP8'><dt id='S9eP8'><q id='S9eP8'><span id='S9eP8'><b id='S9eP8'><form id='S9eP8'><ins id='S9eP8'></ins><ul id='S9eP8'></ul><sub id='S9eP8'></sub></form><legend id='S9eP8'></legend><bdo id='S9eP8'><pre id='S9eP8'><center id='S9eP8'></center></pre></bdo></b><th id='S9eP8'></th></span></q></dt></tr></i><div id='S9eP8'><tfoot id='S9eP8'></tfoot><dl id='S9eP8'><fieldset id='S9eP8'></fieldset></dl></div>

                            <bdo id='S9eP8'></bdo><ul id='S9eP8'></ul>
                            <tfoot id='S9eP8'></tfoot>