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

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

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

      UIStoryboardPopoverSegue 在按鈕觸摸時打開多個窗口

      UIStoryboardPopoverSegue opening multiple windows on button touch(UIStoryboardPopoverSegue 在按鈕觸摸時打開多個窗口)

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

                <tfoot id='0M5lc'></tfoot>
                本文介紹了UIStoryboardPopoverSegue 在按鈕觸摸時打開多個窗口的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                限時送ChatGPT賬號..

                我正在使用 UIStoryboardPopoverSegue 來呈現 iOS 5 iPad 應用的彈出框.Segue 效果很好,但似乎包含按鈕的工具欄是彈出框控制器的直通視圖,因此如果您繼續按下按鈕,則會出現更多彈出框.由于我自己沒有創建和跟蹤 UIPopoverController (正如故事板所做的那樣),當再次觸摸按鈕時我無法關閉它.有沒有其他人遇到過這個?我向 Apple 提出了一個錯誤,但他們沒有回應.

                I'm using a UIStoryboardPopoverSegue to present a popover for an iOS 5 iPad app. The Segue works great, but it seems like the toolbar that contains the button is a passthrough view for the popover controller so if you keep pressing the button, more popovers appear. As I'm not creating and keeping track of the UIPopoverController myself (as the Storyboard is doing it) I can't dismiss it when the button is touched again. Has anyone else run into this? I have a bug open with Apple but they haven't responded.

                編輯:我已經使用下面的答案解決了這個問題.這是我最終使用的代碼.currentPopover 是我的視圖控制器類中的一個 __weak ivar,所以當控制器完成時它會自動下降到 nil.

                EDIT: I've solved this using the answer below. Here is the code I ended up using. currentPopover is a __weak ivar in my view controller class, so when the controller is done it will drop to nil automatically.

                - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
                    if([segue isKindOfClass:[UIStoryboardPopoverSegue class]]){
                        // Dismiss current popover, set new popover
                        [currentPopover dismissPopoverAnimated:YES];
                        currentPopover = [(UIStoryboardPopoverSegue *)segue popoverController];
                    }
                }
                

                推薦答案

                您必須存儲對作為 UIStoryboardPopoverSegue 類的一部分傳遞的 popoverController 屬性的引用prepareForSegue 類方法.

                You have to store a reference to the popoverController property passed as part of the UIStoryboardPopoverSegue class in the prepareForSegue class method.

                要訪問它,請像這樣覆蓋調用視圖控制器中的方法:

                To access it, over-ride the method in the calling view controller like this:

                - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
                {
                    // The Storyboard Segue is named popover in this case:
                    if ([segue.identifier compare:@"popover"] == NSOrderedSame) {
                        // segue.popoverController is only present in popover segue's
                        // self.seguePopoverController is a UIPopoverController * property.
                        self.seguePopoverController = segue.popoverController;
                    }
                }
                

                然后你可以用通常的方式關閉它.

                Then you can dismiss it in the usual way.

                這篇關于UIStoryboardPopoverSegue 在按鈕觸摸時打開多個窗口的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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='Mvkpa'></small><noframes id='Mvkpa'>

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

                        1. <tfoot id='Mvkpa'></tfoot><legend id='Mvkpa'><style id='Mvkpa'><dir id='Mvkpa'><q id='Mvkpa'></q></dir></style></legend>

                          主站蜘蛛池模板: 精品国产一区二区在线 | 亚洲国产精品一区 | 欧美一区二区三区在线观看 | 欧美视频在线播放 | 欧美日韩一 | 99re99| 女朋友的闺蜜3韩国三级 | 成人免费一区二区三区视频网站 | 日本一区二区不卡视频 | 国产我和子的乱视频网站 | 国产精品自产拍在线观看蜜 | h视频在线免费 | 国产不卡一| 精品国产伦一区二区三区观看说明 | 免费黄色a级毛片 | 一区二区三区四区视频 | 综合久久亚洲 | 天天曰夜夜操 | 国产精品视频久久久久久 | 男人天堂网址 | 亚洲精品福利在线 | 久久久久91 | 久久综合av | 国产99久久精品一区二区永久免费 | 欧美亚洲一区二区三区 | m豆传媒在线链接观看 | 精品国产精品国产偷麻豆 | 999免费网站 | 国产视频精品在线观看 | 蜜月aⅴ国产精品 | 欧美在线不卡 | 亚洲在线一区二区 | 一区二区三区免费网站 | 欧美激情一区二区三级高清视频 | 香蕉视频91 | 国产精品美女在线观看 | 国产女人与拘做视频免费 | 日韩成人在线播放 | 精品国产黄a∨片高清在线 成人区精品一区二区婷婷 日本一区二区视频 | 成人免费大片黄在线播放 | 亚洲天堂999 |