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

<tfoot id='wtLWN'></tfoot>

    <bdo id='wtLWN'></bdo><ul id='wtLWN'></ul>

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

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

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

      performSegueWithIdentifier 和 sharedData

      performSegueWithIdentifier and sharedData(performSegueWithIdentifier 和 sharedData)
        <bdo id='rYM0D'></bdo><ul id='rYM0D'></ul>

              <tbody id='rYM0D'></tbody>

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

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

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

              <tfoot id='rYM0D'></tfoot>

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

                問題描述

                限時送ChatGPT賬號..

                我希望我問的不是已經(jīng)回答的問題(但我沒有找到答案,所以希望我沒有).

                I hope I'm not asking something that's been already answered (but I found no answer to this, so hopefully I'm not).

                我在當(dāng)前的 xcode 版本中有一個應(yīng)用程序,使用 segues 和 navigationController.我需要將數(shù)據(jù)從一個視圖傳遞到另一個視圖 - 最簡單的方法是什么?我遇到了一些可能與 performSegueWithIdentifier 方法掛鉤的 sharedData 東西,但不知道如何使用它(或者這樣做是否是正確的選擇).

                I have an app in the current xcode version, using segues and navigationController. I need to pass data from one view to the other - what's the easiest way to do this? I ran onto some sharedData thing that could be possibly hooked onto the performSegueWithIdentifier method but don't know how to use it (or whether it is the right choice to do it like this).

                謝謝

                推薦答案

                一個segue有兩個視圖控制器:sourceViewControllerdestinationViewController.當(dāng) UIKit 執(zhí)行 segue 時,它??會向源 VC 發(fā)送 prepareForSegue:sender: 消息.您可以在視圖控制器子類中重寫該方法以將數(shù)據(jù)傳遞給目標(biāo) VC.

                A segue has two view controllers: sourceViewController and destinationViewController. When UIKit executes a segue, it sends a prepareForSegue:sender: message to the source VC. You can override that method in your view controller subclass to pass data to the destination VC.

                例如,假設(shè)您有一個帶有電影表視圖的主視圖控制器,并且當(dāng)用戶單擊表視圖中的一行時,您希望轉(zhuǎn)到電影的詳細(xì)視圖控制器.

                For example, suppose you have a master view controller with a table view of movies, and when the user clicks a row in the table view, you want to segue to a detail view controller for the movie.

                @implementation MasterViewController
                
                ...
                
                - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
                {
                    DetailViewController *detailVC = segue.destinationViewController;
                    NSIndexPath *selectedPath = [self.tableView indexPathForSelectedRow];
                    detailVC.movie = [self movieForIndexPath:selectedPath];
                }
                

                Interface Builder Storyboard 簡介中對此進(jìn)行了解釋來自 WWDC 2011 的視頻.

                This is explained in the Introducing Interface Builder Storyboarding video from WWDC 2011.

                另外值得注意的是,當(dāng)segue的來源是table view cell,或者table view cell的附屬按鈕時,prepareForSegue:sender:sender參數(shù)是表格視圖單元格.

                It's also worth noting that when the segue's origin is a table view cell, or the accessory button of a table view cell, the sender argument of prepareForSegue:sender: is the table view cell.

                這篇關(guān)于performSegueWithIdentifier 和 sharedData的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 屬性))

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

                          <bdo id='zIfM8'></bdo><ul id='zIfM8'></ul>

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

                        • <small id='zIfM8'></small><noframes id='zIfM8'>

                        • 主站蜘蛛池模板: 精品一区二区av | 欧美偷偷| 日本三级黄视频 | 亚洲精品久久久久久久久久久久久 | 国产做a爱片久久毛片 | 欧美精品成人 | 99精品99| 韩国成人在线视频 | 日日操操 | 91精品国产91久久久久久丝袜 | 一级片av| 久久久入口 | 黄色大片毛片 | 欧美性猛交一区二区三区精品 | 午夜成人免费视频 | 九九热精品在线视频 | 亚洲va在线va天堂va狼色在线 | 精品国产乱码久久久久久丨区2区 | 成人性视频免费网站 | 在线播放中文字幕 | 久久久精品影院 | 国产精品日韩一区二区 | 国产高清精品一区二区三区 | 亚洲电影一区二区三区 | 91精品久久久久久久久 | 亚洲一区中文字幕 | 在线黄色网 | 欧美不卡一区二区 | 亚洲精品视频二区 | 中文字幕视频在线 | 国产精品视频一二三区 | 成人婷婷 | 99精品在线观看 | 免费一级黄色电影 | 亚洲三级在线 | 欧美精品一区二区三区在线 | 91久久精品国产免费一区 | 久久国产高清 | 国产91网址| 成人精品鲁一区一区二区 | 色视频www在线播放国产人成 |