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

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

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

      <tfoot id='uEpOn'></tfoot>
        <bdo id='uEpOn'></bdo><ul id='uEpOn'></ul>
      1. <legend id='uEpOn'><style id='uEpOn'><dir id='uEpOn'><q id='uEpOn'></q></dir></style></legend>

        dismissModalViewControllerAnimated:(和dismissViewControllerA

        dismissModalViewControllerAnimated: (and dismissViewControllerAnimated) crashing in iOS 5(dismissModalViewControllerAnimated:(和dismissViewControllerAnimated)在iOS 5中崩潰)

                <tbody id='rlkM4'></tbody>
                <bdo id='rlkM4'></bdo><ul id='rlkM4'></ul>
              • <small id='rlkM4'></small><noframes id='rlkM4'>

                <legend id='rlkM4'><style id='rlkM4'><dir id='rlkM4'><q id='rlkM4'></q></dir></style></legend><tfoot id='rlkM4'></tfoot>

              • <i id='rlkM4'><tr id='rlkM4'><dt id='rlkM4'><q id='rlkM4'><span id='rlkM4'><b id='rlkM4'><form id='rlkM4'><ins id='rlkM4'></ins><ul id='rlkM4'></ul><sub id='rlkM4'></sub></form><legend id='rlkM4'></legend><bdo id='rlkM4'><pre id='rlkM4'><center id='rlkM4'></center></pre></bdo></b><th id='rlkM4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='rlkM4'><tfoot id='rlkM4'></tfoot><dl id='rlkM4'><fieldset id='rlkM4'></fieldset></dl></div>
                • 本文介紹了dismissModalViewControllerAnimated:(和dismissViewControllerAnimated)在iOS 5中崩潰的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  限時送ChatGPT賬號..

                  我找不到任何合乎邏輯的解釋,但事實仍然是,在 iOS 5 (xCode 4.2) 中,如果我 presentModalView:* animated:YES,我可以調(diào)用dismissModalViewAnimated:* 很好,但如果我調(diào)用 presentModalView:*動畫:否,然后調(diào)用解除方法崩潰.(如果我使用新的 presentViewController:animated:completion:+dismissViewControllerAnimated:),這同樣適用.我現(xiàn)在要嘗試解決這個問題(我不希望演示文稿動畫化)并向Apple報告一個錯誤,但我一直在努力解決這個問題.歡迎任何和所有建議.iOS 5 上沒有多少,所以如果可以,請?zhí)峁椭?在 iOS 4 或 iOS 5 中不會崩潰的示例代碼:

                  I can't find any logical explanation, but the fact remains that, in iOS 5 (xCode 4.2), if I presentModalView:* animated:YES, I can call dismissModalViewAnimated:* fine, but if I call presentModalView:* animated:NO, then calling the dismiss method crashes. (This works the same if I use the new presentViewController:animated:completion: + dismissViewControllerAnimated:). I am going TRY to work around this for now (I don't want the presentation animated) and report a bug to Apple, but I have been beating my head on this for a while. Any and all suggestions are welcome. Not much out there on iOS 5, so please help if you can. Sample code that does not crash in iOS 4 or iOS 5:

                  LoginController *loginController = [[LoginController alloc] initWithNibName:@"LoginControllerGG" bundle:nil];
                  [self presentModalViewController:loginController animated:YES];
                  [loginController release];
                  ...
                  [self dismissModalViewControllerAnimated:YES];
                  

                  這將在 iOS 5 中崩潰,并在解除調(diào)用時出現(xiàn) EXC_BAD_ACCESS:

                  This will crash in iOS 5 with EXC_BAD_ACCESS on the dismiss call:

                  LoginController *loginController = [[LoginController alloc]    initWithNibName:@"LoginControllerGG" bundle:nil];
                  [self presentModalViewController:loginController animated:NO];
                  [loginController release];
                  ...
                  [self dismissModalViewControllerAnimated:YES]; //crashes with EXC_BAD _ACCESS
                  

                  注意:我在 loginController 中有一個動畫,它發(fā)生在 viewDidLoad 上.去看看把它拿出來是否會改變?nèi)魏螙|西,但我想把它拿出來,因為我需要盡快找到解決方案.

                  One note: I have an animation within the loginController that happens on viewDidLoad. Going to see if taking that out changes anything, but I wanted to get this out there since I need a solution asap.

                  完整代碼流程...在 AppDelegate 中,application:didFinishLaunchingWithOptions:

                  Full code flow... In AppDelegate, application:didFinishLaunchingWithOptions:

                  if (!loggedIn)  [myViewController showLoginPanel];
                  

                  在 myViewController 中:

                  In myViewController:

                  - (void)showLoginPanel {    
                      LoginController *loginController = [[LoginController alloc] initWithNibName:@"LoginControllerGG" bundle:nil];
                      if ([self respondsToSelector:@selector(presentViewController:animated:completion:)]) {
                          [self presentViewController:loginController animated:NO completion:nil];
                      } else {
                          [self presentModalViewController:loginController animated:NO]; //iOS 4 works fine with or without animation   
                      } 
                      [loginController release];  
                  }
                  

                  在登錄控制器中:

                  - (IBAction)closeLoginWindow {
                      [[NSNotificationCenter defaultCenter] postNotificationName:@"CloseLoginWindow" object:nil];
                  }   //doing it this way because calling on the self.parentViewController doesn't work
                  

                  返回 myViewController:

                  Back in myViewController:

                  - (void) viewDidLoad
                      ...
                  [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(closeLoginWindow) name:@"CloseLoginWindow" object:nil];
                      ...
                  
                  - (void)closeLoginWindow {
                      if ([self respondsToSelector:@selector(dismissViewControllerAnimated:completion:)]) {
                          [self dismissViewControllerAnimated:YES completion:nil];    //iOS 5 crashes only if presentation was not animated
                      } else [self dismissModalViewControllerAnimated:YES];    //deleting the previous condition, iOS 5 still crashes if presentation was not animated
                  }    
                  

                  推薦答案

                  在 iOS5 中,生命周期的管理發(fā)生了某種變化,我無法詳細解釋這個問題.無論如何,解決方法是將工作流從 applicationDidFinishLaunchingWithOptions 推遲到 applicationDidBecomeActive.似乎在調(diào)用 applicationDidFinishLaunchingWithOptions 時沒有正確初始化某些內(nèi)容.

                  In iOS5 the managing of the lifecyle somehow changed and I cannot explain that issue in detail. Anyway, the fix is to postpone that workflow from applicationDidFinishLaunchingWithOptions to applicationDidBecomeActive. It seems that something isn't initialized right at the call of applicationDidFinishLaunchingWithOptions.

                  - (void)applicationDidFinishLaunchingWithOptions:... {    
                      // in order to do this only at launching, but not on every activation 
                      // Declaration as property for example
                      applicationDidLaunch = YES;
                  }
                  
                  - (void) applicationDidBecomeActive:(UIApplication *)application {
                      if (applicationDidLaunch) {
                          applicationDidLaunch = NO;
                          [Start your login Workflow with modal view presenting here]
                      }
                  }
                  

                  很好奇你的反饋:)....

                  Curious to ur feedback :)....

                  這篇關(guān)于dismissModalViewControllerAnimated:(和dismissViewControllerAnimated)在iOS 5中崩潰的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 和自定義跟蹤和進度圖像(iOS 5 屬性))

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

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

                            主站蜘蛛池模板: 电影91久久久 | 国产福利91精品 | 日韩精品久久久久久 | 中文字幕久久精品 | www.亚洲视频.com | 日韩欧美国产精品一区 | 国产一区二区在线91 | 中文字幕日韩一区 | 2019精品手机国产品在线 | 国产精品美女久久久久久久网站 | 国产一区二区精华 | 久久麻豆精品 | 国产精品一区二区免费 | 欧美v日韩v | 国产欧美视频一区 | 午夜免费网 | 国产亚洲精品精品国产亚洲综合 | 欧美视频成人 | 成人精品毛片 | 日本黄色片免费在线观看 | 免费看国产一级特黄aaaa大片 | 欧美影院 | 国产在线观看福利 | 久久久久久久久国产 | 国产在线视频在线观看 | 黄色在线免费观看 | 亚洲第1页 | www九色| 在线免费小视频 | 日韩二三区| 国产高清免费视频 | 亚洲精选一区二区 | 亚洲视频 欧美视频 | 久久精品 | 涩色视频在线观看 | 天天操夜夜拍 | 国产精品免费一区二区三区四区 | 天天影视网天天综合色在线播放 | 国产99久久精品一区二区300 | 精品久久久久久中文字幕 | 国产高清精品一区 |