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

<tfoot id='zRxUB'></tfoot>

    1. <legend id='zRxUB'><style id='zRxUB'><dir id='zRxUB'><q id='zRxUB'></q></dir></style></legend>
        <bdo id='zRxUB'></bdo><ul id='zRxUB'></ul>
      1. <small id='zRxUB'></small><noframes id='zRxUB'>

      2. <i id='zRxUB'><tr id='zRxUB'><dt id='zRxUB'><q id='zRxUB'><span id='zRxUB'><b id='zRxUB'><form id='zRxUB'><ins id='zRxUB'></ins><ul id='zRxUB'></ul><sub id='zRxUB'></sub></form><legend id='zRxUB'></legend><bdo id='zRxUB'><pre id='zRxUB'><center id='zRxUB'></center></pre></bdo></b><th id='zRxUB'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='zRxUB'><tfoot id='zRxUB'></tfoot><dl id='zRxUB'><fieldset id='zRxUB'></fieldset></dl></div>
      3. 以編程方式添加時模糊 UILabel

        Blurry UILabel when added programmatically(以編程方式添加時模糊 UILabel)

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

      4. <legend id='Fte8o'><style id='Fte8o'><dir id='Fte8o'><q id='Fte8o'></q></dir></style></legend>

        <tfoot id='Fte8o'></tfoot>
            <bdo id='Fte8o'></bdo><ul id='Fte8o'></ul>

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

                  本文介紹了以編程方式添加時模糊 UILabel的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我正在將 UILabel 添加到用于加載目的的視圖中.但是,添加后它變得模糊.奇怪的是,我在 UITableViewController 上加載的加載視圖的代碼幾乎相同,并且在那里工作得很好.然而,UIViewController 之上的這個是模糊的.

                  I am adding a UILabel to a view meant for loading purposes. However, it gets blurry after I added it. The weird thing is that I just about the same code for an loading view which is loaded ontop of an UITableViewController and it works great there. Yet, this one on top of an UIViewController is blurry.

                  這是我的代碼:

                  float x = (self.view.frame.size.width-20)/2;
                  float y = (self.view.frame.size.height-70)/2;
                  
                  // Add loading and sub text
                  UILabel *loadingText = [[UILabel alloc] initWithFrame:CGRectMake(10, round(y+30), round(self.view.frame.size.width-20), 21)];
                  [loadingText setTextAlignment:UITextAlignmentCenter];
                  [loadingText setNumberOfLines:0];
                  [loadingText setFont:[UIFont systemFontOfSize:17]];
                  [loadingText setText:NSLocalizedString(@"Please wait...
                  We are processing your request", @"LoadingPage")];
                  [loadingText sizeToFit];
                  [loadingText setBackgroundColor:[UIColor clearColor]];
                  [loadingText setCenter:self.view.center];
                  [loadingText setTag:2];
                  
                  [view addSubview:loadingText];
                  

                  推薦答案

                  你的標(biāo)簽很模糊,因為框架使用了浮點數(shù).

                  Your label is blurry because the frame is using floating numbers.

                  要強(qiáng)制為你的框架設(shè)置整數(shù)值:

                  To force integers value for your frame just do :

                  [loadingText setFrame:CGRectIntegral(loadingText.frame)];
                  

                  您也可以將構(gòu)成框架的所有值轉(zhuǎn)換為 int,但 CGRectIntegral 會為您完成所有工作.

                  You could also cast all your values composing your frame to int, but CGRectIntegral does all the job for you.

                  這篇關(guān)于以編程方式添加時模糊 UILabel的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  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(圖標(biāo)已經(jīng)包含光澤效果)
                  How does UIEdgeInsetsMake work?(UIEdgeInsetsMake 是如何工作的?)
                  UIProgressView and Custom Track and Progress Images (iOS 5 properties)(UIProgressView 和自定義跟蹤和進(jìn)度圖像(iOS 5 屬性))

                • <tfoot id='afxYs'></tfoot>

                        <tbody id='afxYs'></tbody>
                        <legend id='afxYs'><style id='afxYs'><dir id='afxYs'><q id='afxYs'></q></dir></style></legend>

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

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

                            主站蜘蛛池模板: 黑人巨大精品欧美一区二区免费 | 久久久精品天堂 | 天天操操| 一级片在线播放 | 免费观看羞羞视频网站 | www.天天操.com| 一区二区三区免费看 | 亚洲导航深夜福利涩涩屋 | 国产精品成人在线播放 | 精品视频网 | 精品国产一区探花在线观看 | 天天色av | 九九99精品| 欧美嘿咻 | 国产精品欧美一区二区三区不卡 | 天天干狠狠操 | 日本精品视频 | 久久精品欧美一区二区三区麻豆 | 在线免费观看日本视频 | 国产精品久久久久久久7电影 | 日韩精品一区二区三区在线 | 视频一区在线 | 久久亚洲一区 | 日韩精品免费在线观看 | 欧美亚洲综合久久 | 亚洲国产成人精品女人久久久 | 亚洲精品二区 | 精精久久| 日韩有码在线观看 | 日韩有码一区 | 最新中文字幕第一页视频 | 国产精品区二区三区日本 | 亚洲欧美日韩精品 | 欧美一区二区三区在线观看 | 国产999精品久久久 精品三级在线观看 | 精品国产欧美一区二区三区成人 | 久久久久久亚洲 | 一级毛片视频在线 | 手机在线一区二区三区 | 中文字幕第100页 | 欧美理论片在线观看 |