久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

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

<legend id='JrAWV'><style id='JrAWV'><dir id='JrAWV'><q id='JrAWV'></q></dir></style></legend>
    <bdo id='JrAWV'></bdo><ul id='JrAWV'></ul>

        <tfoot id='JrAWV'></tfoot>
      1. <i id='JrAWV'><tr id='JrAWV'><dt id='JrAWV'><q id='JrAWV'><span id='JrAWV'><b id='JrAWV'><form id='JrAWV'><ins id='JrAWV'></ins><ul id='JrAWV'></ul><sub id='JrAWV'></sub></form><legend id='JrAWV'></legend><bdo id='JrAWV'><pre id='JrAWV'><center id='JrAWV'></center></pre></bdo></b><th id='JrAWV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JrAWV'><tfoot id='JrAWV'></tfoot><dl id='JrAWV'><fieldset id='JrAWV'></fieldset></dl></div>
      2. 如何在不增加背景圖像大小的情況下增加(自定義

        How to increase tapable (hitting) area of (custom Type) UIButton without increasing size of background image(如何在不增加背景圖像大小的情況下增加(自定義類型)UIButton 的可點擊(點擊)區域) - IT屋-程序員軟件開
      3. <i id='MQT8U'><tr id='MQT8U'><dt id='MQT8U'><q id='MQT8U'><span id='MQT8U'><b id='MQT8U'><form id='MQT8U'><ins id='MQT8U'></ins><ul id='MQT8U'></ul><sub id='MQT8U'></sub></form><legend id='MQT8U'></legend><bdo id='MQT8U'><pre id='MQT8U'><center id='MQT8U'></center></pre></bdo></b><th id='MQT8U'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='MQT8U'><tfoot id='MQT8U'></tfoot><dl id='MQT8U'><fieldset id='MQT8U'></fieldset></dl></div>

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

            <legend id='MQT8U'><style id='MQT8U'><dir id='MQT8U'><q id='MQT8U'></q></dir></style></legend>
            <tfoot id='MQT8U'></tfoot>
              <bdo id='MQT8U'></bdo><ul id='MQT8U'></ul>
                <tbody id='MQT8U'></tbody>
                • 本文介紹了如何在不增加背景圖像大小的情況下增加(自定義類型)UIButton 的可點擊(點擊)區域的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  是否可以在不改變按鈕背景圖片大小的情況下增加 UIButton 的可點擊區域

                  is it possible to increase tapable area of UIButton without changing size of Button's background Image

                  我試過了:

                  [shareButton setContentEdgeInsets:UIEdgeInsetsMake(top, left, bottom, right)];
                  

                  &

                  [shareButton setImageEdgeInsets:UIEdgeInsetsMake(top, left, bottom, right)];
                  

                  但這些都不起作用.

                  有什么建議嗎?

                  推薦答案

                  制作類型為 buttonWithType:UIButtonTypeCustom 的 UIButton 并為其分配一個較小尺寸的圖像.

                  Make the UIButton of type buttonWithType:UIButtonTypeCustom and assign to it an image of a smaller size.

                  不要將圖片設置為背景圖片,否則它會隨按鈕一起增長.改為將其設置為主圖像.

                  Do not set the image as the background image or it'll grow with the button. Set it as the main image instead.

                  例如,如果您想將可點擊區域設置為 64x64 大小,并且想要顯示大小為 32x32 的圖像:按鈕大小應為 64x64,圖像大小應為 32x32.

                  For example if you want to set the tappable area to a 64x64 size and you want to show an image sized 32x32: the button size should be be 64x64 and the image size should be 32x32.

                  以編程方式:

                   UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
                  
                  // use an image with the desired size (for example 32x32)
                  [button setImage: [UIImage imageNamed: @"buttonIcon.png"] forState: UIControlStateNormal];
                  // just set the frame of the button (64x64)
                  [button setFrame: CGRectMake(xPositionOfMyButton, yPositionOfMyButton, 64, 64)];
                  

                  界面構建器:

                  這篇關于如何在不增加背景圖像大小的情況下增加(自定義類型)UIButton 的可點擊(點擊)區域的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點擊動畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報)
                  iOS 5 storyboard, programmatically determine path(iOS 5 故事板,以編程方式確定路徑)
                  Icon already includes gloss effects(圖標已經包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進度圖像(iOS 5 屬性))

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

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

                      <tfoot id='be02G'></tfoot>

                          <i id='be02G'><tr id='be02G'><dt id='be02G'><q id='be02G'><span id='be02G'><b id='be02G'><form id='be02G'><ins id='be02G'></ins><ul id='be02G'></ul><sub id='be02G'></sub></form><legend id='be02G'></legend><bdo id='be02G'><pre id='be02G'><center id='be02G'></center></pre></bdo></b><th id='be02G'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='be02G'><tfoot id='be02G'></tfoot><dl id='be02G'><fieldset id='be02G'></fieldset></dl></div>
                          <legend id='be02G'><style id='be02G'><dir id='be02G'><q id='be02G'></q></dir></style></legend>

                              <tbody id='be02G'></tbody>
                          • 主站蜘蛛池模板: 日韩中文字幕高清 | 久久精品日产第一区二区三区 | 成人欧美一区二区三区黑人孕妇 | 久久久网| 国产精品一区二区三区四区五区 | 欧美精品一区二区三区在线 | 91香蕉 | 午夜影院网站 | 日韩精品久久 | 精品国产伦一区二区三区观看体验 | 欧美三级在线 | 午夜激情一区 | 国产美女自拍视频 | 久久大全 | 在线成人 | 久久里面有精品 | 亚洲日日夜夜 | 91精品国产美女在线观看 | 国产精品久久毛片av大全日韩 | 久久亚洲一区 | 成人精品在线观看 | 最新国产精品视频 | 中文字幕av亚洲精品一部二部 | 国产在线视频在线观看 | 欧美久久一区二区 | 激情综合五月天 | 91视频.com | 欧美日韩一区二区三区视频 | 中文字幕福利视频 | 丝袜美腿一区二区三区动态图 | 亚洲精品1区| 一区二区亚洲 | 精品中文字幕在线观看 | 午夜视频在线播放 | 国产一区二区三区视频 | 欧美视频一区二区三区 | 成人中文字幕在线观看 | 91久久国产综合久久91精品网站 | 成年人免费网站 | 久久狠狠 | 精品国产99 |