pbootcms网站模板|日韩1区2区|织梦模板||网站源码|日韩1区2区|jquery建站特效-html5模板网

    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="bvfpnrp" 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="tdzhf7l" id='rlkM4'><tfoot id='rlkM4'></tfoot><dl id='rlkM4'><fieldset id='rlkM4'></fieldset></dl></div>
                • 本文介紹了dismissModalViewControllerAnimated:(和dismissViewControllerAnimated)在iOS 5中崩潰的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

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

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

                  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)用時(shí)出現(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 中有一個(gè)動(dòng)畫,它發(fā)生在 viewDidLoad 上.去看看把它拿出來是否會(huì)改變?nèi)魏螙|西,但我想把它拿出來,因?yàn)槲倚枰M快找到解決方案.

                  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ā)生了某種變化,我無法詳細(xì)解釋這個(gè)問題.無論如何,解決方法是將工作流從 applicationDidFinishLaunchingWithOptions 推遲到 applicationDidBecomeActive.似乎在調(diào)用 applicationDidFinishLaunchingWithOptions 時(shí)沒有正確初始化某些內(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中崩潰的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  How to animate a UIImageview to display fullscreen by tapping on it?(如何通過點(diǎn)擊動(dòng)畫 UIImageview 以顯示全屏?)
                  To stop segue and show alert(停止 segue 并顯示警報(bào))
                  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 屬性))

                  <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="tnxxfpl" 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'>

                            主站蜘蛛池模板: 我车网|我关心的汽车资讯_汽车图片_汽车生活! | 翻斗式矿车|固定式矿车|曲轨侧卸式矿车|梭式矿车|矿车配件-山东卓力矿车生产厂家 | 企业彩铃制作_移动、联通、电信集团彩铃上传开通_彩铃定制_商务彩铃管理平台-集团彩铃网 | 蜗轮丝杆升降机-螺旋升降机-丝杠升降机厂家-润驰传动 | led太阳能路灯厂家价格_风光互补庭院灯_农村市政工程路灯-中山华可路灯品牌 | 哈尔滨京科脑康神经内科医院-哈尔滨治疗头痛医院-哈尔滨治疗癫痫康复医院 | 防堵吹扫装置-防堵风压测量装置-电动操作显示器-兴洲仪器 | 衬塑管道_衬四氟管道厂家-淄博恒固化工设备有限公司 | 高精度-恒温冷水机-螺杆式冰水机-蒸发冷冷水机-北京蓝海神骏科技有限公司 | 北京易通慧公司从事北京网站优化,北京网络推广、网站建设一站式服务商-北京网站优化公司 | 长沙网站建设制作「网站优化推广」-网页设计公司-速马科技官网 | 美国查特CHART MVE液氮罐_查特杜瓦瓶_制造全球品质液氮罐 | 电动葫芦|防爆钢丝绳电动葫芦|手拉葫芦-保定大力起重葫芦有限公司 | 圆盘鞋底注塑机_连帮鞋底成型注塑机-温州天钢机械有限公司 | 杭州画室_十大画室_白墙画室_杭州美术培训_国美附中培训_附中考前培训_升学率高的画室_美术中考集训美术高考集训基地 | 水平垂直燃烧试验仪-灼热丝试验仪-漏电起痕试验仪-针焰试验仪-塑料材料燃烧检测设备-IP防水试验机 | 上海单片机培训|重庆曙海培训分支机构—CortexM3+uC/OS培训班,北京linux培训,Windows驱动开发培训|上海IC版图设计,西安linux培训,北京汽车电子EMC培训,ARM培训,MTK培训,Android培训 | GEDORE扭力螺丝刀-GORDON防静电刷-CHEMTRONICS吸锡线-上海卓君电子有限公司 | 防水套管|柔性防水套管|伸缩器|伸缩接头|传力接头-河南伟创管道 防水套管_柔性防水套管_刚性防水套管-巩义市润达管道设备制造有限公司 | 楼承板-开口楼承板-闭口楼承板-无锡海逵| 土壤养分检测仪|土壤水分|土壤紧实度测定仪|土壤墒情监测系统-土壤仪器网 | Copeland/谷轮压缩机,谷轮半封闭压缩机,谷轮涡旋压缩机,型号规格,技术参数,尺寸图片,价格经销商 CTP磁天平|小电容测量仪|阴阳极极化_双液系沸点测定仪|dsj电渗实验装置-南京桑力电子设备厂 | 广州物流公司_广州货运公司_广州回程车运输 - 万信物流 | 泉州陶瓷pc砖_园林景观砖厂家_石英砖地铺石价格 _福建暴风石英砖 | 电动打包机_气动打包机_钢带捆扎机_废纸打包机_手动捆扎机 | 锻造液压机,粉末冶金,拉伸,坩埚成型液压机定制生产厂家-山东威力重工官方网站 | 密集架-手摇-智能-移动-价格_内蒙古档案密集架生产厂家 | 西装定制/做厂家/公司_西装订做/制价格/费用-北京圣达信西装 | 鄂泉泵业官网|(杭州、上海、全国畅销)大流量防汛排涝泵-LW立式排污泵 | ERP企业管理系统永久免费版_在线ERP系统_OA办公_云版软件官网 | 耐驰泵阀管件制造-耐驰泵阀科技(天津)有限公司 | 电竞学校_电子竞技培训学校学院-梦竞未来电竞学校官网 | 上海瑶恒实业有限公司|消防泵泵|离心泵|官网 | 无菌实验室规划装修设计-一体化实验室承包-北京洁净净化工程建设施工-北京航天科恩实验室装备工程技术有限公司 | 仓储笼_仓储货架_南京货架_仓储货架厂家_南京货架价格低-南京一品仓储设备制造公司 | 找果网 | 苹果手机找回方法,苹果iPhone手机丢了找回,认准找果网! | 杭州火蝠电商_京东代运营_拼多多全托管代运营【天猫代运营】 | 全自动包装秤_全自动上袋机_全自动套袋机_高位码垛机_全自动包装码垛系统生产线-三维汉界机器(山东)股份有限公司 | 丽陂特官网_手机信号屏蔽器_Wifi信号干扰器厂家_学校考场工厂会议室屏蔽仪 | 无锡网站建设-做网站-建网站-网页设计制作-阿凡达建站公司 | 喷播机厂家_二手喷播机租赁_水泥浆洒布机-河南青山绿水机电设备有限公司 |