久久久久久久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>

                          • 主站蜘蛛池模板: 不卡一区 | 亚洲激情综合 | 91av导航| 国产精品一区二区三区四区五区 | 亚洲欧美一区二区在线观看 | 男女羞羞视频网站 | 日韩欧美在线视频 | 九九热这里只有精品在线观看 | 久久999 | 91久久精品国产91久久 | 国产a区| 精品国产一区二区三区在线观看 | 深夜福利影院 | 特一级毛片 | 国产福利91精品 | 成人一区精品 | 欧美成人精品 | 日日操天天射 | 久久精品这里精品 | 午夜伊人| 狠狠艹| 亚洲视频免费 | 一区观看 | 99热在线免费 | 国产一区二区三区四区三区四 | 久久亚洲一区 | 盗摄精品av一区二区三区 | 男女视频网站 | 日韩最新网站 | 日本不卡免费新一二三区 | 久久久精品综合 | 一级毛片,一级毛片 | 久久久久亚洲国产| 久久r精品 | 超碰av人人 | 欧美日韩在线免费观看 | 亚洲欧美国产精品一区二区 | 亚洲精品视频在线 | 青青久久 | www.婷婷| www.国产.com |