久久久久久久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>
                          • 主站蜘蛛池模板: 久久综合久久久 | 97伊人| 国产精品久久久亚洲 | 真人女人一级毛片免费播放 | 黄一级| 免费看日韩视频 | 日本电影一区二区 | 久久久精品网站 | 日韩中文不卡 | 日韩a在线| 国产精品一二区 | 国产精品毛片无码 | 日韩精品视频在线 | av一区二区三区四区 | 欧洲成人午夜免费大片 | 一区二区三区亚洲精品国 | 麻豆a级片 | 曰韩三级| 日韩羞羞| 日韩视频一区在线观看 | 国产乱码精品一区二区三区忘忧草 | 亚洲天堂色 | www.男人天堂.com | 欧美在线观看一区 | 国产1区 | 狠狠av| 91免费版在线观看 | 国产精品毛片一区二区在线看 | 欧美黄色片 | 国产成人网 | 国产精品伦理一区二区三区 | 午夜欧美一区二区三区在线播放 | 日日干天天操 | 可以免费看的毛片 | 91在线精品一区二区 | 爱爱爱av| 国产精品综合久久 | 日韩精品成人一区二区三区视频 | 美女啪啪国产 | 欧洲视频一区 | 国产97久久 |