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

<small id='3vesG'></small><noframes id='3vesG'>

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

      1. 使用 UIPopoverBackgroundView 類

        Using UIPopoverBackgroundView class(使用 UIPopoverBackgroundView 類)

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

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

                • <i id='o6ua8'><tr id='o6ua8'><dt id='o6ua8'><q id='o6ua8'><span id='o6ua8'><b id='o6ua8'><form id='o6ua8'><ins id='o6ua8'></ins><ul id='o6ua8'></ul><sub id='o6ua8'></sub></form><legend id='o6ua8'></legend><bdo id='o6ua8'><pre id='o6ua8'><center id='o6ua8'></center></pre></bdo></b><th id='o6ua8'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='o6ua8'><tfoot id='o6ua8'></tfoot><dl id='o6ua8'><fieldset id='o6ua8'></fieldset></dl></div>
                  本文介紹了使用 UIPopoverBackgroundView 類的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  限時送ChatGPT賬號..

                  Apple 缺少有關如何使用 iOS5 中引入的 UIPopoverBackgroundView 類的文檔.誰有例子?

                  Apple is missing documentation on how to use UIPopoverBackgroundView class introduced in iOS5. Anyone have an example?

                  我嘗試將其子類化,但我在 Lion 上的 XCode 4.2 缺少 UIPopoverBackgroundView.h

                  I have tried to subclass it, but my XCode 4.2 on Lion is missing UIPopoverBackgroundView.h

                  不出所料,它應該被導入為 #import <UIKit/UIPopoverBackgroundView.h>

                  推薦答案

                  要添加到其他僅鏈接的答案,這是如何完成的.

                  To add to the other, link-only answers, here is how this is done.

                  • 創建一個新的 UIPopoverBackgroundView 子類
                  • 在您的界面中聲明以下內容:

                  • Create a new subclass of UIPopoverBackgroundView
                  • Declare the following in your interface:

                  +(UIEdgeInsets)contentViewInsets;
                  +(CGFloat)arrowHeight;
                  +(CGFloat)arrowBase;
                  
                  @property(nonatomic,readwrite) CGFloat arrowOffset;
                  @property(nonatomic,readwrite) UIPopoverArrowDirection arrowDirection;
                  

                • 類方法很簡單:contentViewInsets返回你的邊框的寬度(不包括箭頭),arrowHeight是你的高度箭頭,arrowBase 是箭頭的基礎.

                • The class methods are straightforward: contentViewInsets returns the width of your borders all the way round (not including the arrow), arrowHeight is the height of your arrow, arrowBase is the base of your arrow.

                  • 背景視圖的框架應該是 self.bounds,在箭頭所在的邊緣由 arrowHeight 插入
                  • 箭頭視圖的框架應對齊,使中心遠離self中心arrowOffset(根據軸正確).如果箭頭方向不向上,您必須更改圖像方向,但我的彈出框只會向上,所以我沒有這樣做.
                  • The frame of your background view should be self.bounds, inset by arrowHeight on whatever edge the arrow is on
                  • The frame of the arrow view should be aligned so that the centre is arrowOffset away from the centre of self (correct according to the axis). You have to change the image orientation if the arrow direction is not up, but my popover would only be up so I didn't do that.

                  這是我的 Up-only 子類的 layoutSubviews 方法:

                  Here is the layoutSubviews method for my Up-only subclass:

                  -(void)layoutSubviews
                  {
                      if (self.arrowDirection == UIPopoverArrowDirectionUp)
                      {
                          CGFloat height = [[self class] arrowHeight];
                          CGFloat base = [[self class] arrowBase];
                  
                          self.background.frame = CGRectMake(0, height, self.frame.size.width, self.frame.size.height - height);
                  
                          self.arrow.frame = CGRectMake(self.frame.size.width * 0.5 + self.arrowOffset - base * 0.5, 1.0, base, height);
                          [self bringSubviewToFront:self.arrow];
                  
                      }
                  }
                  

                  這篇關于使用 UIPopoverBackgroundView 類的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='fWrN5'></small><noframes id='fWrN5'>

                    <tfoot id='fWrN5'></tfoot>

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

                          • <bdo id='fWrN5'></bdo><ul id='fWrN5'></ul>
                            <i id='fWrN5'><tr id='fWrN5'><dt id='fWrN5'><q id='fWrN5'><span id='fWrN5'><b id='fWrN5'><form id='fWrN5'><ins id='fWrN5'></ins><ul id='fWrN5'></ul><sub id='fWrN5'></sub></form><legend id='fWrN5'></legend><bdo id='fWrN5'><pre id='fWrN5'><center id='fWrN5'></center></pre></bdo></b><th id='fWrN5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='fWrN5'><tfoot id='fWrN5'></tfoot><dl id='fWrN5'><fieldset id='fWrN5'></fieldset></dl></div>
                            主站蜘蛛池模板: 欧美日韩福利 | 中文在线一区二区 | 亚洲视频国产视频 | 欧美在线色 | 日本黄色大片免费看 | www国产成人免费观看视频,深夜成人网 | 国产精品美女久久久 | 久久99国产精品 | 成人动漫视频网站 | 国产精品久久久久久久久久久久久久 | 日日操操 | 91精品久久久久 | 免费观看羞羞视频网站 | 日韩在线视频一区 | 久久久久久久综合色一本 | 亚洲国产精品一区在线观看 | 欧美综合视频 | 久久毛片 | 综合色播 | www.精品一区 | 免费超碰 | 国产精久久久 | 天天拍天天操 | 久久久www成人免费无遮挡大片 | 成人国产精品色哟哟 | 国产aa| 国产精品久久久久久中文字 | 久久中文字幕视频 | 国产良家自拍 | 欧美一区二区三区在线观看 | 亚洲 欧美 综合 | 国产精品成人国产乱一区 | 97精品视频在线 | 久久精品免费看 | 91福利网| 亚洲精品免费在线观看 | 欧美中文字幕一区二区 | 久久a久久 | 国产精品18毛片一区二区 | 一级毛片,一级毛片 | 亚洲一区二区三区四区五区午夜 |