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

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

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

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

      1. 更改 UIButton 文本

        Changing UIButton text(更改 UIButton 文本)
          <i id='zkpvL'><tr id='zkpvL'><dt id='zkpvL'><q id='zkpvL'><span id='zkpvL'><b id='zkpvL'><form id='zkpvL'><ins id='zkpvL'></ins><ul id='zkpvL'></ul><sub id='zkpvL'></sub></form><legend id='zkpvL'></legend><bdo id='zkpvL'><pre id='zkpvL'><center id='zkpvL'></center></pre></bdo></b><th id='zkpvL'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zkpvL'><tfoot id='zkpvL'></tfoot><dl id='zkpvL'><fieldset id='zkpvL'></fieldset></dl></div>

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

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

                  本文介紹了更改 UIButton 文本的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  所以我試圖在單擊 UIButton 時更新它的文本.我正在使用以下行來更改文本:

                  So I'm trying to update the text on a UIButton when I click it. I'm using the following line to change the text:

                  calibrationButton.titleLabel.text = @"Calibration";
                  

                  我已驗證文本正在更改,但是當我運行應用程序并單擊按鈕時,它會在一瞬間更改為校準",然后立即恢復為默認值.任何想法為什么會發生這種情況?我需要調用某種刷新函數嗎?

                  I have verified that the text is changing, but when I run the app and I click on the button, it changes to "Calibration" for a split second and then goes right back to its default value. Any ideas why this might be happening? Is there some sort of refresh function I need to be calling?

                  推薦答案

                  在布局子視圖時,UIButton 會使用自己的標題值設置其 titleLabel 的文本值,這樣您就可以為這四個設置最多四個不同的字符串狀態(正常、突出顯示、選中、禁用).

                  When laying out its subviews, a UIButton will set its titleLabel's text value using its own title values, so that you can set up to four different strings for the four states (normal, highlighted, selected, disabled).

                  因為這個特性,直接設置titleLabel的文本不會持久化,會在布局子視圖時被按鈕重置.

                  Because of this feature, setting the titleLabel's text directly won't persist, and will be reset by the button when it lays out its subviews.

                  這是更改按鈕狀態的標題文本所必須執行的操作.

                  This is what you have to do to change the title text for a button's state.

                  [calibrationButton setTitle:@"Calibration" forState:UIControlStateNormal];
                  

                  這篇關于更改 UIButton 文本的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  CLLocation returning negative speed(CLLocation 返回負速度)
                  Locations in Core Data sorted by distance via NSFetchedResultsController?(通過 NSFetchedResultsController 按距離排序的核心數據中的位置?)
                  Swift: Geofencing / geolocations near user location(Swift:用戶位置附近的地理圍欄/地理位置)
                  How to get Location (latitude amp; longitude value) in variable on iOS?(如何在 iOS 上的變量中獲取位置(緯度和經度值)?)
                  How to track the device location (iOS and Android) device using Phonegap(如何使用 Phonegap 跟蹤設備位置(iOS 和 Android)設備)
                  Easiest way of getting reverse geocoded current location from iOS(從 iOS 獲取反向地理編碼當前位置的最簡單方法)
                    <legend id='1itj0'><style id='1itj0'><dir id='1itj0'><q id='1itj0'></q></dir></style></legend>

                  • <tfoot id='1itj0'></tfoot>

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

                          1. <small id='1itj0'></small><noframes id='1itj0'>

                            主站蜘蛛池模板: 成人欧美一区二区三区黑人孕妇 | 亚洲人精品 | 亚洲视频在线观看 | 一级毛片网 | 香蕉久久久 | 午夜av免费| 国产日韩欧美精品一区二区三区 | 国产精品毛片无码 | 91视频在线看 | 国产激情一区二区三区 | 黄色网址在线免费观看 | 亚洲三级在线观看 | 日韩视频成人 | 精品一区av | 久久精品国产a三级三级三级 | 97天天干| 国产精品揄拍一区二区 | 中文字幕爱爱视频 | 欧美成年网站 | 极品销魂美女一区二区 | 国产 日韩 欧美 制服 另类 | 伊人免费在线 | 国产精品久久久久久久久免费桃花 | 久久com | 亚洲一区二区综合 | 久久精品国产精品青草 | 婷婷亚洲综合 | 久久久久久蜜桃一区二区 | av影音资源 | 男女免费观看在线爽爽爽视频 | 一级毛片高清 | 日本一二三区在线观看 | 国内自拍偷拍视频 | 欧美亚洲国产成人 | 久久这里有精品 | 一区二区高清不卡 | 超碰一区二区 | 中文字幕在线观看精品 | 一区在线视频 | 久久精品小视频 | 欧美色图综合网 |