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

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

        <bdo id='ZM8ab'></bdo><ul id='ZM8ab'></ul>

        <legend id='ZM8ab'><style id='ZM8ab'><dir id='ZM8ab'><q id='ZM8ab'></q></dir></style></legend>

        如何取回 iOS 7 中的 UIButton 边框?

        时间:2023-07-07

          <bdo id='3VKgj'></bdo><ul id='3VKgj'></ul>

            <legend id='3VKgj'><style id='3VKgj'><dir id='3VKgj'><q id='3VKgj'></q></dir></style></legend>
          • <small id='3VKgj'></small><noframes id='3VKgj'>

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

                • 本文介绍了如何取回 iOS 7 中的 UIButton 边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我在 iOS 中构建了一个旧项目Xcode 5 中的 SDK 6.1.但是,当应用程序在运行 iOS 7 的 iPhone 上运行时,UIbutton 是无边界的.我检查了 .xib 是Builds for">Project Deployment Target (5.0)":

                  I built an old project in iOS SDK 6.1 in Xcode 5. However, the UIbutton is borderless when the app runs on an iPhone running iOS 7. I have checked the .xib is "Builds for" > "Project Deployment Target (5.0)":

                  如何配置 Xcode 5 来构建项目以显示 iOS 6.1 样式的 UIButton?

                  How can I config Xcode 5 to build the project to show an iOS 6.1-style UIButton?

                  推荐答案

                  你可以创建一个类别:

                  - (void)setRoundedBorder:(float) radius borderWidth:(float)borderWidth color:(UIColor*)color
                  {
                      CALayer * l = [self layer];
                      [l setMasksToBounds:YES];
                      [l setCornerRadius:radius];
                      // You can even add a border
                      [l setBorderWidth:borderWidth];
                      [l setBorderColor:[color CGColor]];
                  }
                  

                  这篇关于如何取回 iOS 7 中的 UIButton 边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:防止 UIButton 的 setTitle:forState: 动画 下一篇:如何使用 UIImageRenderingModeAlwaysTemplate 防止粗体图像

                  相关文章

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

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

                    • <bdo id='DuKjC'></bdo><ul id='DuKjC'></ul>
                      <tfoot id='DuKjC'></tfoot>

                      <legend id='DuKjC'><style id='DuKjC'><dir id='DuKjC'><q id='DuKjC'></q></dir></style></legend>