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'>

                            主站蜘蛛池模板: 阿里巴巴诚信通温州、台州、宁波、嘉兴授权渠道商-浙江联欣科技提供阿里会员办理 | 英语词典_成语词典_日语词典_法语词典_在线词典网 | 致胜管家软件服务【在线免费体验】 | 呼末二氧化碳|ETCO2模块采样管_气体干燥管_气体过滤器-湖南纳雄医疗器械有限公司 | 企典软件一站式企业管理平台,可私有、本地化部署!在线CRM客户关系管理系统|移动办公OA管理系统|HR人事管理系统|人力 | 不锈钢复合板|钛复合板|金属复合板|南钢集团安徽金元素复合材料有限公司-官网 | 红酒招商加盟-葡萄酒加盟-进口红酒代理-青岛枞木酒业有限公司 | 影视模板素材_原创专业影视实拍视频素材-8k像素素材网 | 北京律师咨询_知名专业北京律师事务所_免费法律咨询 | 不锈钢管件(不锈钢弯头,不锈钢三通,不锈钢大小头),不锈钢法兰「厂家」-浙江志通管阀 | 临海涌泉蜜桔官网|涌泉蜜桔微商批发代理|涌泉蜜桔供应链|涌泉蜜桔一件代发 | 仿真茅草_人造茅草瓦价格_仿真茅草厂家_仿真茅草供应-深圳市科佰工贸有限公司 | 陶瓷砂磨机,盘式砂磨机,棒销式砂磨机-无锡市少宏粉体科技有限公司 | 山东聚盛新型材料有限公司-纳米防腐隔热彩铝板和纳米防腐隔热板以及钛锡板、PVDF氟膜板供应商 | 上海办公室装修公司_办公室设计_直营办公装修-羚志悦装 | 防火卷帘门价格-聊城一维工贸特级防火卷帘门厂家▲ | 钛板_钛管_钛棒_钛盘管-无锡市盛钛科技有限公司 | 苏州伊诺尔拆除公司_专业酒店厂房拆除_商场学校拆除_办公楼房屋拆除_家工装拆除拆旧 | cnc精密加工_数控机械加工_非标平键定制生产厂家_扬州沃佳机械有限公司 | 直流电能表-充电桩电能表-导轨式电能表-智能电能表-浙江科为电气有限公司 | 工业冷却塔维修厂家_方形不锈钢工业凉水塔维修改造方案-广东康明节能空调有限公司 | 生物制药洁净车间-GMP车间净化工程-食品净化厂房-杭州波涛净化设备工程有限公司 | 比亚迪叉车-比亚迪电动叉车堆垛车托盘车仓储叉车价格多少钱报价 磁力去毛刺机_去毛刺磁力抛光机_磁力光饰机_磁力滚抛机_精密金属零件去毛刺机厂家-冠古科技 | 深圳活动策划公司|庆典策划|专业公关活动策划|深圳艺典文化传媒 重庆中专|职高|技校招生-重庆中专招生网 | 超高频感应加热设备_高频感应电源厂家_CCD视觉检测设备_振动盘视觉检测设备_深圳雨滴科技-深圳市雨滴科技有限公司 | 电缆桥架生产厂家_槽式/梯式_热镀锌线槽_广东东莞雷正电气 | 不锈钢反应釜,不锈钢反应釜厂家-价格-威海鑫泰化工机械有限公司 不干胶标签-不干胶贴纸-不干胶标签定制-不干胶标签印刷厂-弗雷曼纸业(苏州)有限公司 | 聚氨酯复合板保温板厂家_廊坊华宇创新科技有限公司 | 转子泵_凸轮泵_凸轮转子泵厂家-青岛罗德通用机械设备有限公司 | 防火卷帘门价格-聊城一维工贸特级防火卷帘门厂家▲ | 天津市能谱科技有限公司-专业的红外光谱仪_红外测油仪_紫外测油仪_红外制样附件_傅里叶红外光谱技术生产服务厂商 | 济南展厅设计施工_数字化展厅策划设计施工公司_山东锐尚文化传播有限公司 | 刮板输送机,粉尘加湿搅拌机,螺旋输送机,布袋除尘器 | 土壤养分检测仪|土壤水分|土壤紧实度测定仪|土壤墒情监测系统-土壤仪器网 | 热缩管切管机-超声波切带机-织带切带机-无纺布切布机-深圳市宸兴业科技有限公司 | 网站建设-网站制作-网站设计-网站开发定制公司-网站SEO优化推广-咏熠软件 | PCB厂|线路板厂|深圳线路板厂|软硬结合板厂|电路板生产厂家|线路板|深圳电路板厂家|铝基板厂家|深联电路-专业生产PCB研发制造 | 【甲方装饰】合肥工装公司-合肥装修设计公司,专业从事安徽办公室、店面、售楼部、餐饮店、厂房装修设计服务 | 南京展台搭建-南京展会设计-南京展览设计公司-南京展厅展示设计-南京汇雅展览工程有限公司 | 悬浮拼装地板_幼儿园_篮球场_悬浮拼接地板-山东悬浮拼装地板厂家 | 房间温控器|LonWorks|海思 |