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

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

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

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

      • <bdo id='lJmQ0'></bdo><ul id='lJmQ0'></ul>

      1. 不同的單元格背景顏色取決于 iOS 版本(4.0 到 5.

        Different cell bg color depending on iOS version (4.0 to 5.0)(不同的單元格背景顏色取決于 iOS 版本(4.0 到 5.0))

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

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

                  本文介紹了不同的單元格背景顏色取決于 iOS 版本(4.0 到 5.0)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我有一個自定義的分組 UITableViewCell,上面有幾個 UILabel.由于 UITableViewCell 的背景顏色曾經是純白色,它與 UILabel 的默認背景顏色匹配,因此 UILabel 框不可見..

                  I have a custom grouped UITableViewCell, with a couple of UILabels on it. Since the UITableViewCell background color used to be pure white, it matched the UILabels' default background color, so the UILabel box wasn't visible..

                  更新到 iOS 5.0 后,我注意到現在分組 UITableViewCells 的默認背景顏色是更灰白色(實際上是 #f7f7f7),因此 UILabels 的框架以丑陋的方式可見..

                  After updating to iOS 5.0, I notice that now the default background color for grouped UITableViewCells is a more greyish white (actually #f7f7f7), and as a consequence the UILabels' frame is visible in an ugly way..

                  那么,當需要在不同 iOS 版本之間變化時,設置 UILabel 的背景顏色的最佳方法是什么?我知道我可以使用 opaque = NO 和 [UIColor clearColor],但出于性能原因,我更喜歡繪制 UILabel 的背景.

                  So, what is the best way to set the UILabels' background color when it needs to vary between different iOS versions? I know I could use opaque = NO and [UIColor clearColor], but I would prefer to paint the UILabels' background for performance reasons.

                  推薦答案

                  在委托方法 tableView:willDisplayCell: 中,UITableViewCell 將背景顏色設置為白色或者,在 iOS 5 中,為灰色.

                  In the delegate method tableView:willDisplayCell:, the UITableViewCell will have the background colour set to white or, in iOS 5, greyish.

                  您可以更改所有子視圖的所有 backgroundColor.

                  You can change all your the backgroundColor of all your subviews.

                  - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath {
                      for (UIView* view in cell.contentView.subviews) {
                          view.backgroundColor = cell.backgroundColor;
                      }
                  }
                  

                  這篇關于不同的單元格背景顏色取決于 iOS 版本(4.0 到 5.0)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='TMSeN'></small><noframes id='TMSeN'>

                      <tbody id='TMSeN'></tbody>
                    • <bdo id='TMSeN'></bdo><ul id='TMSeN'></ul>

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

                          • 主站蜘蛛池模板: 91久久精品国产 | 91久久久久久 | 在线男人天堂 | 国产成人jvid在线播放 | 国产精品一区二区三区免费观看 | 免费在线观看一区二区三区 | 久久久久久久久综合 | 污书屋| 国产激情91久久精品导航 | 亚洲欧美一区二区三区在线 | 欧美亚洲另类丝袜综合网动图 | 日韩精品成人av | 精品福利视频一区二区三区 | www日韩高清| 欧美a级成人淫片免费看 | 日韩中文一区 | 久久成人精品 | 日本a视频 | 青青草华人在线视频 | 国产乱码精品一区二区三区中文 | 人人干人人超 | 国产乱码精品一区二区三区五月婷 | 久久天天 | 91动漫在线观看 | 四虎永久| 草在线| 午夜精品久久久久久久星辰影院 | 欧美激情亚洲激情 | 日本国产一区二区 | 中文字幕av网 | 欧美在线一区二区三区 | 久久久国| 中文字幕视频三区 | 国产精品视频免费观看 | 91一区 | 国产精品美女久久久 | 久久精品无码一区二区三区 | 欧美一级欧美三级在线观看 | 亚洲一区二区在线播放 | 欧美激情视频一区二区三区免费 | 99精品免费久久久久久久久日本 |