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

轉(zhuǎn)場(chǎng)后 iOS 5 黑屏

iOS 5 Black screen after segue(轉(zhuǎn)場(chǎng)后 iOS 5 黑屏)
本文介紹了轉(zhuǎn)場(chǎng)后 iOS 5 黑屏的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

問題描述

限時(shí)送ChatGPT賬號(hào)..

我有一個(gè)帶有情節(jié)提要和兩個(gè)場(chǎng)景的 iOS 5 應(yīng)用程序.場(chǎng)景 1 是一個(gè)選擇列表,而場(chǎng)景 2 顯示每個(gè)選擇的詳細(xì)信息

I have an iOS 5 application with a storyboard and two scenes. Scene 1 is a selection list while Scene 2 shows details for each selection

在場(chǎng)景 1 中,我需要傳遞一個(gè)變量,我這樣做:

In Scene 1 I need to pass a variable and I do that with:

//Handles the selection 
-(void)tableView:(UITableView *)tableView accessoryButtonTappedForRowWithIndexPath:(NSIndexPath *)indexPath
{
    Guests *myGuests =[guestList objectAtIndex:[indexPath row]];

    selectedGuest = [[NSString alloc] initWithFormat:@"You have selected %@", myGuests.guestID];

    [self performSegueWithIdentifier:@"TGG" sender:self];
}

-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{
    if([[segue identifier] isEqualToString:@"TGG"]){
        GuestDetailsViewController *vc = [segue destinationViewController];
        [vc setGuestSelected:selectedGuest];
    }
}

在場(chǎng)景 2(細(xì)節(jié))中,我使用它來驗(yàn)證是否收到了正確的變量

In Scene 2 (details) I use this to verify that the right variable was received like this

// Implement viewDidLoad to do additional setup after loading the view, typically from a nib.
- (void)viewDidLoad
{
    NSString *msg = [[NSString alloc] initWithFormat:@"You have selected %@", guestSelected];
    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Selection" message:msg delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
    [alert show];          

     nameCell.textLabel.text= msg;

    [super viewDidLoad];
}

所有這些都可以正常工作,并且警告框會(huì)顯示正確的變量,并且會(huì)過渡到新場(chǎng)景.但是,警告框總共顯示 5 次以上 &結(jié)束,一旦完成,整個(gè)窗口都是黑色的.那時(shí)我的場(chǎng)景(場(chǎng)景 2)中沒有顯示任何內(nèi)容.所以我知道我有正確的轉(zhuǎn)場(chǎng),它會(huì)根據(jù)需要轉(zhuǎn)換,我只是在屏幕上看不到任何東西.

All of this works fine and the alert box shows the right variable and there is a transition to the new scene. HOWEVER, the alert box displays a total of 5 times over & over and, once completed, the whole window is black. Nothing from my scene (Scene 2) is displayed at that point. So I know I have the right segue, it transitions as desired, I just can't see anything on my screen.

推薦答案

我遇到了非常相似的情況.我無意中取消了該方法的注釋:

i ran into a situation very similar. i had unintentionally un-commented the method:

-(void)loadView

相信這個(gè)方法覆蓋了 IB 接口,而是用這個(gè)代碼創(chuàng)建了它.檢查以確保它被刪除或注釋掉恕我直言.

i believe this method overrides the IB interface and created it from this code instead. check to make sure it is either removed or commented out IMHO.

這篇關(guān)于轉(zhuǎn)場(chǎng)后 iOS 5 黑屏的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動(dòng)運(yùn)行/壓力測(cè)試 iOS 應(yīng)用程序以找出罕見 UI 錯(cuò)誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標(biāo)成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態(tài)和動(dòng)態(tài)單元格中處理單元格選擇)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中刪除 Safari 中的地址欄?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級(jí)到 Xcode 4.5 后,iOS 5 SDK 消失了)
Having trouble creating UIImage from CIImage in iOS5(在 iOS5 中從 CIImage 創(chuàng)建 UIImage 時(shí)遇到問題)
主站蜘蛛池模板: 九九亚洲| 噜啊噜在线 | 久久久九九 | 欧美一级在线观看 | 精品国产欧美 | 狠狠干网站 | 午夜视频一区 | 欧美一级免费观看 | 9999国产精品欧美久久久久久 | 精品视频一区二区三区 | 国产日韩电影 | 超碰激情| 狠狠爱免费视频 | 99热国产在线播放 | 久久99久久99精品免视看婷婷 | h片在线免费观看 | 亚洲一二三区免费 | 一区二区视频 | 国产目拍亚洲精品99久久精品 | 日韩高清成人 | 欧美精品中文字幕久久二区 | 国产欧美精品一区 | 青青久久| 欧美另类视频 | 色婷婷av一区二区三区软件 | 日韩精品一区二区三区中文字幕 | 亚洲欧美精品国产一级在线 | 日韩黄a | 91麻豆精品国产91久久久久久久久 | 国产精品久久久久久久久免费丝袜 | 性生生活大片免费看视频 | 美女精品一区 | 亚洲国产精品激情在线观看 | 毛片一区 | 人妖一区 | 日韩精品区 | 亚洲精品一区二区 | 国产一区二区三区 | 亚洲成人三区 | 亚洲一区二区三区免费在线 | 日本成人二区 |