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

轉場后 iOS 5 黑屏

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

問題描述

限時送ChatGPT賬號..

我有一個帶有情節提要和兩個場景的 iOS 5 應用程序.場景 1 是一個選擇列表,而場景 2 顯示每個選擇的詳細信息

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

在場景 1 中,我需要傳遞一個變量,我這樣做:

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];
    }
}

在場景 2(細節)中,我使用它來驗證是否收到了正確的變量

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];
}

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

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

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

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.

這篇關于轉場后 iOS 5 黑屏的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

相關文檔推薦

KIF: How to auto-run/stress test an iOS app to find the cause of a rare UI bug?(KIF:如何自動運行/壓力測試 iOS 應用程序以找出罕見 UI 錯誤的原因?)
Can#39;t change target membership visibility in Xcode 4.5(無法更改 Xcode 4.5 中的目標成員身份可見性)
UITableView: Handle cell selection in a mixed cell table view static and dynamic cells(UITableView:在混合單元格表視圖靜態和動態單元格中處理單元格選擇)
How to remove Address Bar in Safari in iOS?(如何在 iOS 中刪除 Safari 中的地址欄?)
iOS 5 SDK is gone after upgrade to Xcode 4.5(升級到 Xcode 4.5 后,iOS 5 SDK 消失了)
Having trouble creating UIImage from CIImage in iOS5(在 iOS5 中從 CIImage 創建 UIImage 時遇到問題)
主站蜘蛛池模板: 欧美日韩中文字幕在线播放 | 欧洲精品视频一区 | 国产天天操| 福利一区在线观看 | 免费久久网站 | 国产伦精品一区二区三区照片91 | 四虎在线观看 | 不卡视频在线 | av性色全交蜜桃成熟时 | 亚洲日韩中文字幕 | 国产精品高潮呻吟久久 | av一级久久 | 在线国产视频观看 | 国产精品视频999 | 亚洲一区二区三区 | 国产一区二区自拍 | 色999视频| 亚洲一二三区精品 | 午夜寂寞福利视频 | 亚洲国产欧美一区二区三区久久 | 在线观看国产www | 成人免费观看视频 | 一级黄色片网址 | 国产日韩精品一区 | 伊伊综合网 | 亚洲在线视频 | 91人人澡人人爽 | 中文字幕成人 | 99热这里只有精品8 激情毛片 | 久色网| 国产一区二区精品在线观看 | 久久精品小视频 | 国产视频中文字幕 | 欧美成人aaa级毛片在线视频 | 欧美精品一区二区免费 | 日韩中文字幕区 | 久久国产99| 欧美激情一区二区 | 免费看淫片 | 中文字幕av一区二区三区 | 日韩视频区|